Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
23d6e480
Commit
23d6e480
authored
1 year ago
by
Matthias Betz
Browse files
Options
Download
Email Patches
Plain Diff
fixing gradle setup
parent
94b80132
Pipeline
#7256
passed with stage
in 1 minute and 58 seconds
Changes
14
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
.gitlab-ci.yml
+13
-9
.gitlab-ci.yml
CityDoctorParent/CityDoctorEdge/build.gradle
+4
-0
CityDoctorParent/CityDoctorEdge/build.gradle
CityDoctorParent/CityDoctorValidation/build.gradle
+144
-11
CityDoctorParent/CityDoctorValidation/build.gradle
CityDoctorParent/CityDoctorValidation/src/assembly/assembly.xml
+0
-38
...ctorParent/CityDoctorValidation/src/assembly/assembly.xml
CityDoctorParent/CityDoctorValidation/src/assembly/common/REKaiserwall.gml
+0
-0
...CityDoctorValidation/src/assembly/common/REKaiserwall.gml
CityDoctorParent/CityDoctorValidation/src/assembly/common/checkForSolid.xml
+0
-0
...ityDoctorValidation/src/assembly/common/checkForSolid.xml
CityDoctorParent/CityDoctorValidation/src/assembly/common/testConfigWithStreaming.yml
+0
-0
...alidation/src/assembly/common/testConfigWithStreaming.yml
CityDoctorParent/CityDoctorValidation/src/assembly/lin/start.sh
+2
-0
...ctorParent/CityDoctorValidation/src/assembly/lin/start.sh
CityDoctorParent/CityDoctorValidation/src/assembly/no_runtime/start.bat
+2
-0
...nt/CityDoctorValidation/src/assembly/no_runtime/start.bat
CityDoctorParent/CityDoctorValidation/src/assembly/no_runtime/start.sh
+2
-0
...ent/CityDoctorValidation/src/assembly/no_runtime/start.sh
CityDoctorParent/CityDoctorValidation/src/assembly/start.bat
+0
-2
CityDoctorParent/CityDoctorValidation/src/assembly/start.bat
CityDoctorParent/CityDoctorValidation/src/assembly/win/start.bat
+2
-0
...torParent/CityDoctorValidation/src/assembly/win/start.bat
CityDoctorParent/CityDoctorValidation/src/main/resources/citydoctor_logo.ico
+0
-0
...tyDoctorValidation/src/main/resources/citydoctor_logo.ico
CityDoctorParent/buildSrc/src/main/groovy/citydoctor-multi-module.gradle
+1
-0
...t/buildSrc/src/main/groovy/citydoctor-multi-module.gradle
with
170 additions
and
60 deletions
+170
-60
.gitlab-ci.yml
+
13
-
9
View file @
23d6e480
image
:
maven:3.8.6-eclipse-temurin-17
image
:
gradle:jdk17-alpine
before_script
:
-
GRADLE_USER_HOME="$(pwd)/.gradle"
-
export GRADLE_USER_HOME
build
:
s
cript
:
-
cd CityDoctorParent
-
mvn verify
artifacts
:
when
:
always
reports
:
junit
:
-
CityDoctorParent/
**/target/surefire-reports
/TEST-*.xml
s
tage
:
test
script
:
-
cd CityDoctorParent
-
gradle test
artifacts
:
when
:
always
reports
:
junit
:
CityDoctorParent/
build/test-results/test/**
/TEST-*.xml
\ No newline at end of file
This diff is collapsed.
Click to expand it.
CityDoctorParent/CityDoctorEdge/build.gradle
+
4
-
0
View file @
23d6e480
...
...
@@ -13,4 +13,8 @@ dependencies {
testImplementation
'org.apache.logging.log4j:log4j-core:2.18.0'
}
test
{
ignoreFailures
=
true
}
description
=
'CityDoctorEdge'
This diff is collapsed.
Click to expand it.
CityDoctorParent/CityDoctorValidation/build.gradle
+
144
-
11
View file @
23d6e480
/*
* This file was generated by the Gradle 'init' task.
*/
import
org.gradle.testkit.runner.GradleRunner
plugins
{
id
'citydoctor-multi-module'
id
'org.beryx.runtime'
version
'1.12.7'
}
application
{
mainClass
=
'de.hft.stuttgart.citydoctor2.CityDoctorValidation'
applicationName
=
'CityDoctorValidation'
}
runtime
{
targetPlatform
(
"lin"
)
{
jdkHome
=
jdkDownload
(
"https://download.bell-sw.com/java/17.0.6+10/bellsoft-jdk17.0.6+10-linux-amd64.tar.gz"
)
}
targetPlatform
(
"mac"
)
{
jdkHome
=
jdkDownload
(
"https://download.bell-sw.com/java/17.0.6+10/bellsoft-jdk17.0.6+10-macos-amd64.tar.gz"
)
}
targetPlatform
(
"win"
)
{
jdkHome
=
jdkDownload
(
"https://download.bell-sw.com/java/17.0.6+10/bellsoft-jdk17.0.6+10-windows-amd64.zip"
)
}
}
tasks
.
withType
(
CreateStartScripts
).
each
{
task
->
task
.
doLast
{
String
text
=
task
.
windowsScript
.
text
text
=
text
.
replaceFirst
(
/(set CLASSPATH=%APP_HOME%\\lib\\).*/
,
{
"${it[1]}*"
})
task
.
windowsScript
.
write
text
}
}
task
createPackages
(
group:
'distribution'
,
description:
'Creating packages for all os'
)
{
doFirst
{
def
system
=
it
GradleRunner
.
create
()
.
withDebug
(
true
)
.
withProjectDir
(
projectDir
)
.
forwardOutput
()
.
withArguments
(
"-is"
,
"build"
,
"jre"
)
.
build
();
}
doLast
{
copy
{
from
(
'src/assembly/common'
)
into
(
"$buildDir/jpackage/CityDoctorValidation-win/"
)
}
copy
{
from
(
'src/assembly/common'
)
into
(
"$buildDir/jpackage/CityDoctorValidation-lin/"
)
}
copy
{
from
(
'src/assembly/common'
)
into
(
"$buildDir/jpackage/CityDoctorValidation-mac/"
)
}
copy
{
from
(
'src/assembly/common'
)
into
(
"$buildDir/jpackage/CityDoctorValidation/"
)
}
copy
{
from
(
'src/assembly/no_runtime/'
)
into
(
"$buildDir/jpackage/CityDoctorValidation/"
)
}
copy
{
from
(
'src/assembly/win/start.bat'
)
into
(
"$buildDir/jpackage/CityDoctorValidation-win/"
)
}
copy
{
from
(
'src/assembly/lin/start.sh'
)
into
(
"$buildDir/jpackage/CityDoctorValidation-lin/"
)
}
copy
{
from
(
'src/assembly/lin/start.sh'
)
into
(
"$buildDir/jpackage/CityDoctorValidation-mac/"
)
}
copy
{
from
(
"${project.buildDir}/install/CityDoctorValidation/lib/"
)
into
(
"$buildDir/jpackage/CityDoctorValidation-win/app/"
)
}
copy
{
from
(
"${project.buildDir}/install/CityDoctorValidation/lib/"
)
into
(
"$buildDir/jpackage/CityDoctorValidation/app/"
)
}
copy
{
from
(
"${project.buildDir}/install/CityDoctorValidation/lib/"
)
into
(
"$buildDir/jpackage/CityDoctorValidation-lin/app/"
)
}
copy
{
from
(
"${project.buildDir}/install/CityDoctorValidation/lib/"
)
into
(
"$buildDir/jpackage/CityDoctorValidation-mac/app/"
)
}
copy
{
from
(
"${project.buildDir}/jre/CityDoctorValidation-win"
)
into
(
"$buildDir/jpackage/CityDoctorValidation-win/runtime/"
)
}
copy
{
from
(
"${project.buildDir}/jre/CityDoctorValidation-lin"
)
into
(
"$buildDir/jpackage/CityDoctorValidation-lin/runtime/"
)
}
copy
{
from
(
"${project.buildDir}/jre/CityDoctorValidation-mac"
)
into
(
"$buildDir/jpackage/CityDoctorValidation-mac/runtime/"
)
}
}
}
task
packageAll
(
group:
'distribution'
,
description:
'Creating zip packages for all os'
,
type:
Zip
)
{
dependsOn
(
createPackages
)
dependsOn
tasks
.
create
(
"winZip"
,
Zip
)
{
from
file
(
"$buildDir/jpackage/CityDoctorValidation-win/"
)
archiveBaseName
=
"CityDoctorValidation"
archiveClassifier
=
"win"
}
dependsOn
tasks
.
create
(
"linZip"
,
Zip
)
{
from
file
(
"$buildDir/jpackage/CityDoctorValidation-lin/"
)
archiveBaseName
=
"CityDoctorValidation"
archiveClassifier
=
"lin"
}
dependsOn
tasks
.
create
(
"macZip"
,
Zip
)
{
from
file
(
"$buildDir/jpackage/CityDoctorValidation-mac/"
)
archiveBaseName
=
"CityDoctorValidation"
archiveClassifier
=
"mac"
}
dependsOn
tasks
.
create
(
"allZip"
,
Zip
)
{
from
file
(
"$buildDir/jpackage/CityDoctorValidation/"
)
archiveBaseName
=
"CityDoctorValidation"
archiveClassifier
=
"no-runtime"
}
}
jar
{
manifest
{
attributes
'Implementation-Title'
:
"CityDoctorValidation"
,
'Main-Class'
:
'de.hft.stuttgart.citydoctor2.CityDoctorValidation'
}
}
dependencies
{
api
project
(
':CityDoctorModel'
)
api
project
(
':CityDoctorEdge'
)
api
project
(
':CityDoctorCheckResult'
)
implementation
project
(
':CityDoctorModel'
)
implementation
project
(
':CityDoctorEdge'
)
implementation
project
(
':CityDoctorCheckResult'
)
implementation
(
'net.sf.saxon:Saxon-HE:11.3'
)
{
exclude
group:
'xml-apis'
,
module:
'xml-apis'
}
implementation
(
'org.apache.xmlgraphics:fop:2.7'
)
{
exclude
group:
'xml-apis'
,
module:
'xml-apis'
}
api
'org.jdom:jdom2:2.0.6.1'
api
"org.apache.logging.log4j:log4j-api:2.18.0"
api
'org.apache.logging.log4j:log4j-core:2.18.0'
api
'org.locationtech.jts:jts-core:1.19.0'
api
'de.hft.stuttgart:citygml4j-quality-ade:3.2.0'
implementation
'org.jdom:jdom2:2.0.6.1'
implementation
"org.apache.logging.log4j:log4j-api:2.18.0"
implementation
'org.apache.logging.log4j:log4j-core:2.18.0'
implementation
'org.locationtech.jts:jts-core:1.19.0'
implementation
'de.hft.stuttgart:citygml4j-quality-ade:3.2.0'
testImplementation
'junit:junit:4.13.2'
}
...
...
This diff is collapsed.
Click to expand it.
CityDoctorParent/CityDoctorValidation/src/assembly/assembly.xml
deleted
100644 → 0
+
0
-
38
View file @
94b80132
<assembly
xmlns=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"
>
<id>
zip
</id>
<formats>
<format>
zip
</format>
</formats>
<includeBaseDirectory>
false
</includeBaseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>
libs
</outputDirectory>
<excludes>
<exclude>
${project.groupId}:${project.artifactId}:jar:*
</exclude>
</excludes>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>
${project.build.directory}
</directory>
<outputDirectory>
/
</outputDirectory>
<includes>
<include>
${project.artifactId}-${project.version}.jar
</include>
</includes>
</fileSet>
<fileSet>
<directory>
${project.basedir}/src/assembly
</directory>
<outputDirectory>
/
</outputDirectory>
<includes>
<include>
start.bat
</include>
<include>
testConfigWithStreaming.yml
</include>
<include>
REKaiserwall.gml
</include>
<include>
checkForSolid.xml
</include>
</includes>
<filtered>
true
</filtered>
</fileSet>
</fileSets>
</assembly>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
CityDoctorParent/CityDoctorValidation/src/assembly/REKaiserwall.gml
→
CityDoctorParent/CityDoctorValidation/src/assembly/
common/
REKaiserwall.gml
+
0
-
0
View file @
23d6e480
File moved
This diff is collapsed.
Click to expand it.
CityDoctorParent/CityDoctorValidation/src/assembly/checkForSolid.xml
→
CityDoctorParent/CityDoctorValidation/src/assembly/
common/
checkForSolid.xml
+
0
-
0
View file @
23d6e480
File moved
This diff is collapsed.
Click to expand it.
CityDoctorParent/CityDoctorValidation/src/assembly/testConfigWithStreaming.yml
→
CityDoctorParent/CityDoctorValidation/src/assembly/
common/
testConfigWithStreaming.yml
+
0
-
0
View file @
23d6e480
File moved
This diff is collapsed.
Click to expand it.
CityDoctorParent/CityDoctorValidation/src/assembly/lin/start.sh
0 → 100644
+
2
-
0
View file @
23d6e480
#!/bin/sh
./runtime/bin/java
-classpath
app/
*
:plugin/
*
de.hft.stuttgart.citydoctor2.CityDoctorValidation
-in
REKaiserwall.gml
-config
testConfigWithStreaming.yml
-xmlReport
output.xml
\ No newline at end of file
This diff is collapsed.
Click to expand it.
CityDoctorParent/CityDoctorValidation/src/assembly/no_runtime/start.bat
0 → 100644
+
2
-
0
View file @
23d6e480
java
-classpath
app
/
*;
plugin
/
*
de
.hft.stuttgart.citydoctor2.CityDoctorValidation
-in
REKaiserwall
.gml
-config
testConfigWithStreaming
.yml
-xmlReport
output
.xml
pause
\ No newline at end of file
This diff is collapsed.
Click to expand it.
CityDoctorParent/CityDoctorValidation/src/assembly/no_runtime/start.sh
0 → 100644
+
2
-
0
View file @
23d6e480
#!/bin/sh
java
-classpath
app/
*
:plugin/
*
de.hft.stuttgart.citydoctor2.CityDoctorValidation
-in
REKaiserwall.gml
-config
testConfigWithStreaming.yml
-xmlReport
output.xml
\ No newline at end of file
This diff is collapsed.
Click to expand it.
CityDoctorParent/CityDoctorValidation/src/assembly/start.bat
deleted
100644 → 0
+
0
-
2
View file @
94b80132
java
-classpath
libs
/
*;
plugins
/
*;
$
{
project
.artifactId
}-
$
{
project
.version
}
.jar
de
.hft.stuttgart.citydoctor2.CityDoctorValidation
-in
REKaiserwall
.gml
-config
testConfigWithStreaming
.yml
-xmlReport
output
.xml
pause
\ No newline at end of file
This diff is collapsed.
Click to expand it.
CityDoctorParent/CityDoctorValidation/src/assembly/win/start.bat
0 → 100644
+
2
-
0
View file @
23d6e480
"runtime/bin/java.exe"
-classpath
app
/
*;
plugin
/
*
de
.hft.stuttgart.citydoctor2.CityDoctorValidation
-in
REKaiserwall
.gml
-config
testConfigWithStreaming
.yml
-xmlReport
output
.xml
pause
\ No newline at end of file
This diff is collapsed.
Click to expand it.
CityDoctorParent/CityDoctorValidation/src/main/resources/citydoctor_logo.ico
0 → 100644
+
0
-
0
View file @
23d6e480
4.19 KB
This diff is collapsed.
Click to expand it.
CityDoctorParent/buildSrc/src/main/groovy/citydoctor-multi-module.gradle
+
1
-
0
View file @
23d6e480
...
...
@@ -20,6 +20,7 @@ test {
dependencies
{
testImplementation
'org.mockito:mockito-core:4.6.1'
testImplementation
'junit:junit:4.13.2'
testRuntimeOnly
'org.junit.vintage:junit-vintage-engine:5.8.2'
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment