-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: upgrade wrapper to 6.9.2 * Upgraded to gradle 6 and refactored tests to use the gradleTestKit. ReleaseExtension uses Properties now. * feat: replaced travis ci with github workflow to run tests * feat: Replaced dynamic property handling in grovvy with fields #353 #288 #281 * feat: GitAdapter and SvnAdapter configs are now of type gradle property and have input annotations
- Loading branch information
Showing
49 changed files
with
1,722 additions
and
865 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: adopt | ||
architecture: x64 | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | ||
|
||
- name: Build with Gradle | ||
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee | ||
with: | ||
arguments: check |
This file was deleted.
Oops, something went wrong.
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
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,92 +1,62 @@ | ||
buildscript { | ||
repositories { | ||
jcenter { | ||
url "https://jcenter.bintray.com" | ||
maven { | ||
url "https://plugins.gradle.org/m2/" | ||
} | ||
} | ||
dependencies { | ||
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.3.0' | ||
classpath 'nu.studer:gradle-plugindev-plugin:1.0.4' | ||
classpath 'nu.studer:gradle-plugindev-plugin:4.1' | ||
classpath 'org.codehaus.groovy:groovy-backports-compat23:2.4.6' | ||
classpath 'net.researchgate:gradle-release:2.6.0' | ||
classpath 'net.researchgate:gradle-release:2.7.0' | ||
} | ||
} | ||
|
||
apply plugin: 'groovy' | ||
plugins { | ||
id 'org.gradle.java-gradle-plugin' | ||
id 'org.gradle.groovy' | ||
id 'maven-publish' | ||
id 'net.researchgate.release' version '2.7.0' | ||
id "com.jfrog.bintray" version "1.8.4" | ||
} | ||
|
||
apply plugin: 'idea' | ||
apply plugin: 'nu.studer.plugindev' | ||
apply plugin: 'com.jfrog.artifactory' | ||
apply plugin: 'net.researchgate.release' | ||
|
||
group='net.researchgate' | ||
|
||
dependencies { | ||
testCompile("org.spockframework:spock-core:$spockVersion") { exclude group: 'org.codehaus.groovy' } | ||
testCompile "junit:junit:$junitVersion" | ||
testCompile "org.eclipse.jgit:org.eclipse.jgit:$jgitVersion" | ||
testCompile "cglib:cglib-nodep:$cglibVersion" | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
plugindev { | ||
pluginImplementationClass 'net.researchgate.release.ReleasePlugin' | ||
pluginDescription 'gradle-release is a plugin for providing a Maven-like release process to project using Gradle.' | ||
pluginLicenses 'MIT' | ||
pluginTags 'gradle', 'plugin', 'release' | ||
authorId 'hillkorn' | ||
authorName 'Dennis Schumann' | ||
authorEmail '[email protected]' | ||
projectUrl 'https://github.com/researchgate/gradle-release' | ||
projectInceptionYear '2011' | ||
done() // do not omit this | ||
dependencies { | ||
testCompile("org.spockframework:spock-core:2.1-groovy-2.5") { exclude group: 'org.codehaus.groovy' } | ||
testCompile "org.eclipse.jgit:org.eclipse.jgit:5.0.3.201809091024-r" | ||
testCompile "cglib:cglib-nodep:3.2.8" | ||
testImplementation gradleTestKit() | ||
testImplementation("org.junit.jupiter:junit-jupiter:5.7.1") | ||
} | ||
|
||
release { | ||
git { | ||
requireBranch = '(master|\\d+\\.\\d+)' | ||
gradlePlugin { | ||
plugins { | ||
releasePlugin { | ||
id = 'net.researchgate.release' | ||
implementationClass = 'net.researchgate.release.ReleasePlugin' | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
user = project.hasProperty('bintrayUser') ? bintrayUser : '' | ||
key = project.hasProperty('bintrayApiKey') ? bintrayApiKey : '' | ||
pkg { | ||
repo = 'gradle-plugins' | ||
userOrg = 'researchgate' | ||
version { | ||
gpg { | ||
sign = false | ||
} | ||
mavenCentralSync { | ||
sync = false | ||
user = project.hasProperty('sonatypeUser') ? sonatypeUser : '' | ||
password = project.hasProperty('sonatypePassword') ? sonatypePassword : '' | ||
} | ||
} | ||
} | ||
publish = false | ||
tasks.withType(Test).configureEach { | ||
dependsOn tasks.jar | ||
useJUnitPlatform() | ||
systemProperties.put('currentVersion', project.version) | ||
} | ||
|
||
artifactory { | ||
contextUrl = 'https://oss.jfrog.org' | ||
publish { | ||
repository { | ||
repoKey = 'oss-snapshot-local' //The Artifactory repository key to publish to | ||
username = project.hasProperty('bintrayUser') ? bintrayUser : '' | ||
password = project.hasProperty('bintrayApiKey') ? bintrayApiKey : '' | ||
} | ||
defaults { | ||
publications 'plugin' // That is how it is named in plugindev plugin | ||
properties = ['bintray.repo': 'gradle-plugins', 'bintray.package': 'gradle-release', 'bintray.version': version.toString()] | ||
} | ||
} | ||
resolve { | ||
repoKey = 'jcenter' | ||
release { | ||
git { | ||
requireBranch = '(master|\\d+\\.\\d+)' | ||
} | ||
} | ||
|
||
afterReleaseBuild.dependsOn bintrayUpload | ||
|
||
wrapper.gradleVersion = '1.12' | ||
wrapper.gradleVersion = '6.9.2' | ||
|
||
updateVersion.doFirst { | ||
def file = file('README.md') | ||
|
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 @@ | ||
version=2.8.2-SNAPSHOT | ||
# Dependency versions | ||
spockVersion=0.7-groovy-1.8 | ||
jgitVersion=3.7.1.201504261725-r | ||
junitVersion=4.12 | ||
cglibVersion=3.2.0 | ||
version=3.0.0-SNAPSHOT |
Binary file not shown.
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,6 @@ | ||
#Wed Feb 04 07:48:37 CET 2015 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.2-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-1.12-bin.zip | ||
distributionSha256Sum=8bde5c859a3ddf5d127ac77465fc24fa8a831d3d8d49e8248548f2cb87485ef1 |
Oops, something went wrong.