Skip to content

Commit

Permalink
Gradle 8.0-rc-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalcolea committed Jan 4, 2023
1 parent fb2c262 commit fd9e3e1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 32 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/nebula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,6 @@ jobs:
- ${{ runner.os }}-gradlewrapper-
- name: Gradle build
run: ./gradlew --stacktrace build --scan
- name: Post-success actions
if: success()
run: ./gradlew jacocoTestReport coveralls
env:
CI_NAME: github_actions
CI_BUILD_NUMBER: ${{ github.sha }}
CI_BUILD_URL: 'https://github.com/${{ github.repository }}'
CI_BRANCH: ${{ github.ref }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish:
if: startsWith(github.ref, 'refs/tags/v')
needs: validation
Expand Down
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
import org.gradle.util.GradleVersion

plugins {
id 'com.netflix.nebula.plugin-plugin' version '20.0.0'
id 'com.netflix.nebula.optional-base' version '8.0.0'
id 'com.netflix.nebula.plugin-plugin' version '20.2.0'
id 'com.netflix.nebula.optional-base' version '9.0.0'
id "org.jetbrains.kotlin.jvm" version "1.7.20"
id 'java-gradle-plugin'
id "org.gradle.test-retry" version "1.4.1"
id "org.gradle.test-retry" version "1.5.0"
}

description 'Gradle plugin to allow locking of dynamic dependency versions'
Expand Down Expand Up @@ -97,6 +97,8 @@ if (GradleVersion.version(project.gradle.gradleVersion) >= (GradleVersion.versio
classes.dependsOn compileKotlin
}

test.dependsOn jar

tasks.withType(Test) {
testLogging {
events "PASSED", "FAILED", "SKIPPED"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-rc-1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,13 @@ class AbstractDependencyLockPluginSpec extends IntegrationTestKitSpec {
def mavenrepo
def projectName

//to avoid enableFeaturePreview('ONE_LOCKFILE_PER_PROJECT') has been deprecated
@Rule
public final ProvideSystemProperty provideSystemProperty = new ProvideSystemProperty("ignoreDeprecations", "true")


def setup() {
keepFiles = true
new File("${projectDir}/gradle.properties").text = "systemProp.nebula.features.coreLockingSupport=true"

projectName = getProjectDir().getName().replaceAll(/_\d+/, '')
settingsFile << """\
rootProject.name = '${projectName}'
enableFeaturePreview('ONE_LOCKFILE_PER_PROJECT')
""".stripIndent()

def graph = new DependencyGraphBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class DependencyLockPluginWithCoreSpec extends AbstractDependencyLockPluginSpec
plugins {
id 'com.netflix.nebula.dependency-lock'
id 'java'
id 'com.github.johnrengelman.shadow' version '5.0.0'
id 'com.github.johnrengelman.shadow' version '7.1.0'
}
repositories {
${mavenrepo.mavenRepositoryBlock}
Expand Down Expand Up @@ -166,7 +166,7 @@ class DependencyLockPluginWithCoreSpec extends AbstractDependencyLockPluginSpec
plugins {
id 'com.netflix.nebula.dependency-lock'
id 'java'
id 'com.github.johnrengelman.shadow' version '5.0.0'
id 'com.github.johnrengelman.shadow' version '7.1.0'
}
repositories {
${mavenrepo.mavenRepositoryBlock}
Expand Down Expand Up @@ -371,7 +371,7 @@ class DependencyLockPluginWithCoreSpec extends AbstractDependencyLockPluginSpec
buildFile << """\
plugins {
id 'com.netflix.nebula.dependency-lock'
id 'nebula.kotlin' version '1.3.41'
id "org.jetbrains.kotlin.jvm" version "1.8.0"
}
repositories {
${mavenrepo.mavenRepositoryBlock}
Expand Down Expand Up @@ -436,7 +436,7 @@ class DependencyLockPluginWithCoreSpec extends AbstractDependencyLockPluginSpec
addSubproject("sub1", """
plugins {
id 'com.netflix.nebula.dependency-lock'
id 'nebula.kotlin' version '1.3.41'
id "org.jetbrains.kotlin.jvm" version "1.8.0"
}
dependencies {
$configuration 'test.nebula:a:1.+'
Expand Down Expand Up @@ -560,7 +560,6 @@ class DependencyLockPluginWithCoreSpec extends AbstractDependencyLockPluginSpec
repositories { maven { url "https://plugins.gradle.org/m2/" } }
dependencies {
classpath "com.netflix.nebula:nebula-clojure-plugin:9.4.3"
classpath "com.netflix.nebula:nebula-kotlin-plugin:1.3.40"
}
}
$plugins
Expand Down Expand Up @@ -608,14 +607,12 @@ class DependencyLockPluginWithCoreSpec extends AbstractDependencyLockPluginSpec
'java' | true | 'applied first'
'java-library' | true | 'applied first'
'nebula.clojure' | true | 'applied first'
'nebula.kotlin' | true | 'applied first'
'scala' | true | 'applied first'

'groovy' | false | 'applied last'
'java' | false | 'applied last'
'java-library' | false | 'applied last'
'nebula.clojure' | false | 'applied last'
'nebula.kotlin' | false | 'applied last'
'scala' | false | 'applied last'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ class AbstractCachingAndDependencyLockingFeatureFlagsSpec extends IntegrationTes
File repo
String uniqueId

//to avoid enableFeaturePreview('ONE_LOCKFILE_PER_PROJECT') has been deprecated
@Rule
public final ProvideSystemProperty provideSystemProperty = new ProvideSystemProperty("ignoreDeprecations", "true")

def setupSpec() {
if (wireMockServer != null && wireMockServer.isRunning()) {
Expand All @@ -69,8 +66,6 @@ class AbstractCachingAndDependencyLockingFeatureFlagsSpec extends IntegrationTes
projectName = getProjectDir().getName().replaceAll(/_\d+/, '')
settingsFile << """\
rootProject.name = '${projectName}'
enableFeaturePreview('ONE_LOCKFILE_PER_PROJECT')
""".stripIndent()

serverUrl = wireMockServer.url('/').toString()
Expand Down

0 comments on commit fd9e3e1

Please sign in to comment.