version update and improved MultiVersionJarPlugin
This commit is contained in:
27
build.gradle
27
build.gradle
@@ -1,6 +1,31 @@
|
||||
subprojects {
|
||||
subprojects { subproject ->
|
||||
apply plugin: 'java-library'
|
||||
|
||||
version = getProperty('version.myGradlePlugins')
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(11)
|
||||
}
|
||||
}
|
||||
|
||||
int javaVersion
|
||||
if(subproject.path == ':osgi-app') {
|
||||
javaVersion = 11
|
||||
} else {
|
||||
javaVersion = 8
|
||||
}
|
||||
tasks.named(JavaPlugin.COMPILE_JAVA_TASK_NAME, JavaCompile) {
|
||||
options.release = javaVersion
|
||||
options.compilerArgs << '-parameters'
|
||||
}
|
||||
|
||||
pluginManager.withPlugin('groovy') {
|
||||
tasks.named("compileGroovy", GroovyCompile) {
|
||||
options.release = javaVersion
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
url = woggioniMavenRepositoryUrl
|
||||
|
Reference in New Issue
Block a user