build: configure jar only when publish is enabled
@@ -48,13 +48,6 @@ subprojects { Project subproject ->
apply plugin:"java-library"
apply from: "https://raw.githubusercontent.com/micronaut-projects/micronaut-build/v${micronautBuildVersion}/publishing.gradle"
bintray.publish = true
- } else {
- apply plugin: "java"
- }
-
-
- sourceCompatibility = '1.8'
- targetCompatibility = '1.8'
jar {
manifest {
@@ -63,6 +56,12 @@ subprojects { Project subproject ->
attributes('Implementation-Title': title)
}
}
+ } else {
+ apply plugin: "java"
+ }
+
+ sourceCompatibility = '1.8'
+ targetCompatibility = '1.8'
dependencies {
annotationProcessor platform("io.micronaut:micronaut-bom:$micronautVersion")
