Skip to content

Commit

Permalink
Fix bootJar tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
mkSpace authored and K-Diger committed Dec 6, 2023
1 parent 2d601d3 commit e34a12b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 24 deletions.
15 changes: 11 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ plugins {

java.sourceCompatibility = JavaVersion.VERSION_17

application {
mainClass.set("com.whatever.raisedragon.RaiseDragonApiApplicationKt")
}

allprojects {
group = "com.whatever"
version = "0.0.1-SNAPSHOT"
Expand All @@ -25,6 +21,10 @@ allprojects {
}
}

application {
mainClass = "com.whatever.raisedragon.RaiseDragonApiApplicationKt"
}

subprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "org.jetbrains.kotlin.plugin.spring")
Expand Down Expand Up @@ -58,4 +58,11 @@ subprojects {
useJUnitPlatform()
}

tasks.bootJar {
enabled = false
}

tasks.jar {
enabled = true
}
}
12 changes: 8 additions & 4 deletions raisedragon-api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
tasks.bootJar {
enabled = true
}

tasks.jar {
enabled = false
}

val swaggerVersion: String by project.extra

dependencies {
Expand All @@ -10,7 +18,3 @@ dependencies {
// Swagger
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:$swaggerVersion")
}

application {
mainClass.set("com.whatever.raisedragon.RaiseDragonApiApplicationKt")
}
8 changes: 0 additions & 8 deletions raisedragon-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,3 @@ allOpen {
annotation("jakarta.persistence.MappedSuperclass")
annotation("jakarta.persistence.Embeddable")
}

tasks.bootJar {
enabled = false
}

tasks.jar {
enabled = true
}
8 changes: 0 additions & 8 deletions raisedragon-external/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,4 @@ dependencies {

implementation("org.springframework.boot:spring-boot-starter-validation:3.0.4")
implementation("org.springframework.boot:spring-boot-starter-aop:3.0.4")
}

tasks.bootJar {
enabled = false
}

tasks.jar {
enabled = true
}

0 comments on commit e34a12b

Please sign in to comment.