We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cb8eea commit 97ea932Copy full SHA for 97ea932
build.gradle
@@ -78,4 +78,14 @@ if (this.hasProperty('jfrogUser') && this.hasProperty('jfrogPassword')) artifact
78
}
79
80
81
-tasks.withType(PublishToMavenRepository) {it.dependsOn check}
+task javaVersionCheck() << {
82
+ if (JavaVersion.current() != JavaVersion.VERSION_1_6) {
83
+ throw new GradleException('Build must be run on Java 6')
84
+ }
85
+}
86
+
87
+tasks.withType(PublishToMavenRepository) {
88
+ it.dependsOn check
89
+ it.dependsOn javaVersionCheck
90
91
settings.gradle
@@ -1,5 +1 @@
1
-if (JavaVersion.current() != JavaVersion.VERSION_1_6) {
2
- throw new GradleException('This build must be run with Java 6')
3
-}
4
-
5
rootProject.name = 'gradle-dependency-analyze'
0 commit comments