-
Notifications
You must be signed in to change notification settings - Fork 830
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to latest JPI + Gradle versions
Releases were broken with the previous version of the JPI plugin [0], therefore we needed to try upgrading to the latest version. As the latest version requires Gradle 6, we have a few changes to make: - `jenkinsVersion` needs to be referenced through `project.properties` - the `war` plugin needs to be explicitly added - the CSS/JS plugins we're using are not yet released[1][2], so we can follow the tricks in Spotless[3] to use the version from the (pinned) latest commit on GitHub Next, as we're upgrading the JPI plugin, we need to: - migrate to using `implementation` / `testImplementation` - add Feature Variants for each of the `optionalJenkinsPlugins` - although I'm not sure if they're needed right now, we'll produce them for now and review later See also https://groups.google.com/g/jenkinsci-dev/c/CDVvgj9dDMs [0]: jenkinsci/gradle-jpi-plugin#192 [1]: eriwen/gradle-css-plugin#58 [2]: eriwen/gradle-js-plugin#177 [3]: https://github.com/diffplug/spotless/blob/a7f25eb51c6d4006591ea911157e62d0213e320b/CONTRIBUTING.md
- Loading branch information
1 parent
119f93e
commit 6b7a8d8
Showing
4 changed files
with
51 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionSha256Sum=abc10bcedb58806e8654210f96031db541bcd2d6fc3161e81cb0572d6a15e821 | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,20 @@ | ||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal() | ||
maven { | ||
url 'https://jitpack.io' | ||
} | ||
} | ||
resolutionStrategy { | ||
eachPlugin { | ||
if (requested.id.id == 'com.eriwen.gradle.css') { | ||
useModule('com.github.eriwen:gradle-css-plugin:9fe88d7') | ||
} else if (requested.id.id == 'com.eriwen.gradle.js') { | ||
useModule('com.github.eriwen:gradle-js-plugin:d15f4ae') | ||
} | ||
} | ||
} | ||
} | ||
|
||
rootProject.name = 'job-dsl-plugin-root' | ||
include 'job-dsl-core', 'job-dsl-plugin', 'job-dsl-api-viewer' |