From: Miroslav Kravec Date: Sun, 9 Sep 2018 16:01:50 +0200 Subject: Make sources buildable on debian --- build.gradle | 45 +-------------------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/build.gradle b/build.gradle index 40e8827..dc1a919 100644 --- a/build.gradle +++ b/build.gradle @@ -1,37 +1,13 @@ -buildscript { - repositories { - maven { - url "https://plugins.gradle.org/m2/" - } - } - dependencies { - classpath "com.gradle.publish:plugin-publish-plugin:0.9.7" - } -} -apply plugin: "com.gradle.plugin-publish" apply plugin: 'java-gradle-plugin' apply plugin: 'groovy' group = 'net.ltgt.gradle' +version = '0.10' if (JavaVersion.current().isJava9Compatible()) { tasks.withType(JavaCompile).all { options.compilerArgs.addAll(['-release', '7']) } tasks.withType(GroovyCompile).all { options.compilerArgs.addAll(['-release', '7']) } } -gradle.taskGraph.whenReady { graph -> - if (graph.hasTask(publishPlugins)) { - assert JavaVersion.current().isJava7() || JavaVersion.current().isJava9Compatible() : "Releases must be built with JDK 7 or JDK 9 (make sure to clean and rebuild after changing JDK)" - - assert 'git diff --quiet --exit-code'.execute(null, rootDir).waitFor() == 0 : "Working tree is dirty" - def process ='git describe --exact-match'.execute(null, rootDir) - assert process.waitFor() == 0 : "Version is not tagged" - version = process.text.trim() - ~'^v' - } -} - -repositories { - jcenter() -} dependencies { compile gradleApi() @@ -60,22 +36,3 @@ test { exceptionFormat = 'FULL' } } - -pluginBundle { - website = 'https://github.com/tbroyer/gradle-apt-plugin' - vcsUrl = 'https://github.com/tbroyer/gradle-apt-plugin' - description = 'Gradle plugin making it easier/safer to use Java annotation processors' - tags = [ 'annotation-processing', 'annotation-processors', 'apt' ] - - plugins { - aptPlugin { - id = 'net.ltgt.apt' - displayName = 'Gradle APT plugin' - } - } - - mavenCoordinates { - groupId = project.group - artifactId = project.name - } -}