Skip to content

Commit

Permalink
Gradle 7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalcolea committed Sep 13, 2021
1 parent e54f848 commit d1d1361
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 108 deletions.
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@


plugins {
id 'nebula.plugin-plugin' version '15.4.1'
id 'nebula.plugin-plugin' version '16.0.1'
id "org.jetbrains.kotlin.jvm" version "1.4.21"
id 'groovy'
id "nebula.integtest" version "6.0.3"
id "nebula.integtest" version "8.2.0"
}

description 'Test harness for Gradle plugins. Hopefully retiring in favor of Gradle TestKit'
Expand Down Expand Up @@ -48,3 +48,7 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
jvmTarget = '1.8'
}
}

tasks.withType(Test).configureEach {
it.useJUnitPlatform()
}
28 changes: 28 additions & 0 deletions gradle.lockfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
cglib:cglib-nodep:3.2.2=integTestRuntimeClasspath,testRuntimeClasspath
com.natpryce:hamkrest:1.8.0.1=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.netflix.nebula:nebula-test:10.0.1=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
com.nhaarman:mockito-kotlin:1.6.0=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
junit:junit:4.13=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.bytebuddy:byte-buddy-agent:1.11.13=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
net.bytebuddy:byte-buddy:1.11.13=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.apiguardian:apiguardian-api:1.1.0=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.codehaus.groovy:groovy:3.0.6=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.hamcrest:hamcrest-core:1.3=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.hamcrest:hamcrest:2.2=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.jetbrains.kotlin:kotlin-reflect:1.4.21=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.jetbrains.kotlin:kotlin-stdlib-common:1.4.21=compileClasspath,integTestCompileClasspath,integTestRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.21=compileClasspath,integTestCompileClasspath,integTestRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.21=compileClasspath,integTestCompileClasspath,integTestRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.jetbrains.kotlin:kotlin-stdlib:1.4.21=compileClasspath,integTestCompileClasspath,integTestRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.jetbrains:annotations:13.0=compileClasspath,integTestCompileClasspath,integTestRuntimeClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit.platform:junit-platform-commons:1.7.0=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.junit.platform:junit-platform-engine:1.7.0=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.mockito:mockito-core:3.12.4=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.objenesis:objenesis:3.2=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.opentest4j:opentest4j:1.2.0=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.spockframework:spock-core:2.0-M4-groovy-3.0=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
org.spockframework:spock-junit4:2.0-M4-groovy-3.0=integTestCompileClasspath,integTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath
empty=annotationProcessor,compile,integTestAnnotationProcessor,integTestCompile,integTestRuntime,runtime,testAnnotationProcessor,testCompile,testRuntime
3 changes: 0 additions & 3 deletions gradle/dependency-locks/annotationProcessor.lockfile

This file was deleted.

8 changes: 0 additions & 8 deletions gradle/dependency-locks/compileClasspath.lockfile

This file was deleted.

3 changes: 0 additions & 3 deletions gradle/dependency-locks/integTestAnnotationProcessor.lockfile

This file was deleted.

19 changes: 0 additions & 19 deletions gradle/dependency-locks/integTestCompileClasspath.lockfile

This file was deleted.

20 changes: 0 additions & 20 deletions gradle/dependency-locks/integTestRuntimeClasspath.lockfile

This file was deleted.

8 changes: 0 additions & 8 deletions gradle/dependency-locks/runtimeClasspath.lockfile

This file was deleted.

3 changes: 0 additions & 3 deletions gradle/dependency-locks/testAnnotationProcessor.lockfile

This file was deleted.

19 changes: 0 additions & 19 deletions gradle/dependency-locks/testCompileClasspath.lockfile

This file was deleted.

20 changes: 0 additions & 20 deletions gradle/dependency-locks/testRuntimeClasspath.lockfile

This file was deleted.

2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ConfigurationsSpec extends IntegrationTestKitSpec {
}

when:
def result = runTasks('dependencies', '--configuration', 'compileClasspath')
def result = runTasks('dependencies', '--configuration', 'compileClasspath', '--warning-mode', 'none')

then:
result.output.contains("Resolved configuration 'compileClasspath' from MyPlugin")
Expand Down Expand Up @@ -77,7 +77,7 @@ class ConfigurationsSpec extends IntegrationTestKitSpec {
}

when:
def result = runTasks('help')
def result = runTasks('help', '--warning-mode', 'none')

then:
result.output.contains("> Task :help")
Expand Down

0 comments on commit d1d1361

Please sign in to comment.