gradle-retrolambda
gradle-retrolambda copied to clipboard
Include retrolambda in gradle master build file
Hi,
I want to include the retrolamda plugin configuration in a master build.gradle file. This files manage its subprojects building and it is the only one build.gradle (there is no one inside the subprojects)
I tried to config retrolamda follow the sample-java but I get this error
Plugin with id 'me.tatarka.retrolambda' not found.
Where do I need to insert the retrolamda configuration in this file?
Thanks in advance
subprojects {
apply plugin: 'maven'
apply plugin: 'signing'
group = 'io.advantageous.qbit'
version = projectVersion
archivesBaseName = "qbit-$project.name"
test.onlyIf { !Boolean.getBoolean('skip.tests') }
dependencies {
compile 'org.slf4j:slf4j-api:[1.7,1.8)'
testCompile 'junit:junit:4.10'
testCompile 'org.mockito:mockito-core:2.0.4-beta'
testCompile 'ch.qos.logback:logback-classic:1.1.2'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
signing {
required false
sign configurations.archives
}
}
project('core') {
dependencies {
compile "io.advantageous.boon:boon-reflekt:$boonVersion"
compile "io.advantageous.boon:boon-json:$boonVersion"
testCompile project(':qbit:test-support')
}
uploadArchives {
repositories {
mavenDeployer {
pom.project {
description 'Go Channels inspired Java lib'
}
}
}
}
}
project('boon') {
dependencies {
compile project(':qbit:core')
compile "io.advantageous.boon:boon-json:$boonVersion"
testCompile project(':qbit:test-support')
}
uploadArchives {
repositories {
mavenDeployer {
pom.project {
description 'Boon plugin for qbit'
}
}
}
}
}
The first thing, you should add apply plugin: 'me.tatarka.retrolambda'
somewhere to get rid of the exception, but I don't know if it's possible to define retrolambda config in root build.gradle. Retrolambda probably depends on the android plugin so it may be impossible. Let us know when you find a solution.