Gradle stuff
This commit is contained in:
parent
c3fc6a4e88
commit
cd9fdd28e8
@ -21,7 +21,7 @@ RUN chown -R $APPLICATION_USER /app
|
|||||||
USER $APPLICATION_USER
|
USER $APPLICATION_USER
|
||||||
|
|
||||||
COPY --from=jdkbuilder /myjdk /myjdk
|
COPY --from=jdkbuilder /myjdk /myjdk
|
||||||
COPY simplenotes-app/build/libs/app-*-all.jar /app/simplenotes.jar
|
COPY simplenotes-app/build/libs/simplenotes-app-with-dependencies*.jar /app/simplenotes.jar
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
CMD [ \
|
CMD [ \
|
||||||
|
|||||||
@ -1 +1,2 @@
|
|||||||
org.gradle.caching=true
|
org.gradle.caching=true
|
||||||
|
org.gradle.parallel=true
|
||||||
|
|||||||
@ -8,20 +8,11 @@ plugins {
|
|||||||
|
|
||||||
tasks.withType<ShadowJar> {
|
tasks.withType<ShadowJar> {
|
||||||
|
|
||||||
archiveBaseName.set("app")
|
archiveAppendix.set("with-dependencies")
|
||||||
manifest.attributes["Main-Class"] = "be.simplenotes.app.SimpleNotesKt"
|
manifest.attributes["Main-Class"] = "be.simplenotes.app.SimpleNotesKt"
|
||||||
|
|
||||||
mergeServiceFiles()
|
mergeServiceFiles()
|
||||||
|
|
||||||
// minimize()
|
|
||||||
|
|
||||||
// include("org.mariadb.jdbc:mariadb-java-client")
|
|
||||||
// include("com.h2database:h2")
|
|
||||||
// include("org.jetbrains.kotlin:kotlin-reflect")
|
|
||||||
// include("org.eclipse.jetty:*")
|
|
||||||
// include("org.apache.lucene:*")
|
|
||||||
// include("org.ocpsoft.prettytime:prettytime")
|
|
||||||
|
|
||||||
File(rootProject.projectDir, "buildSrc/src/main/resources/exclusions")
|
File(rootProject.projectDir, "buildSrc/src/main/resources/exclusions")
|
||||||
.listFiles()!!
|
.listFiles()!!
|
||||||
.flatMap {
|
.flatMap {
|
||||||
@ -36,7 +27,7 @@ tasks.withType<ShadowJar> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.create("package") {
|
tasks.create("package") {
|
||||||
rootProject.subprojects.forEach { dependsOn(":${it.name}:test") }
|
tasks.getByName("build").dependsOn("package")
|
||||||
|
|
||||||
dependsOn("shadowJar")
|
dependsOn("shadowJar")
|
||||||
dependsOn("css")
|
dependsOn("css")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user