forked from openmastery/gradle-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from mlueders/gradle_2
Gradle 2
- Loading branch information
Showing
50 changed files
with
167 additions
and
159 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,23 +1,22 @@ | ||
import com.bancvue.gradle.maven.DefaultPublishFilter | ||
import org.apache.ivy.core.module.descriptor.Artifact | ||
import org.gradle.api.publication.maven.internal.PomFilter | ||
|
||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
maven { url "https://oss.sonatype.org/content/groups/public"} | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.github.townsfolk:gradle-release:1.2' | ||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.5' | ||
} | ||
} | ||
|
||
|
||
apply plugin: 'release' | ||
apply plugin: "bancvue-oss" | ||
apply plugin: "integration-test" | ||
apply plugin: "com.bancvue.core-oss" | ||
apply plugin: "com.bancvue.integration-test" | ||
apply plugin: "com.bancvue.maven-publish-ext" | ||
apply plugin: 'com.jfrog.bintray' | ||
|
||
repositories { | ||
mavenCentral() | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
|
@@ -27,7 +26,7 @@ dependencies { | |
exclude group: 'com.google.guava' | ||
} | ||
|
||
mainTestCompile('org.spockframework:spock-core:0.7-groovy-1.8') { | ||
mainTestCompile('org.spockframework:spock-core:0.7-groovy-2.0') { | ||
exclude group: 'org.codehaus.groovy' | ||
} | ||
mainTestCompile 'cglib:cglib-nodep:2.2.2' | ||
|
@@ -47,55 +46,31 @@ license { | |
[licenseMainTest, licenseFormatMainTest]*.exclude "org/gradle/testkit/**" | ||
|
||
|
||
|
||
/**********************************************************************************************************************/ | ||
// Everything below is POC | ||
|
||
artifacts { | ||
archives jarMainTest | ||
archives sourcesJarMainTest | ||
} | ||
|
||
uploadArchives { | ||
repositories.mavenDeployer { | ||
|
||
pom.project { | ||
packaging "jar" | ||
url "https://github.com/BancVue/GradlePluginsCore" | ||
developers { | ||
developer { | ||
id "bancvue_oss" | ||
name "BancVue Open Source Development" | ||
email "[email protected]" | ||
} | ||
} | ||
scm { | ||
url "https://github.com/BancVue/GradlePluginsCore.git" | ||
connection "scm:git:[email protected]:BancVue/GradlePluginsCore.git" | ||
developerConnection "scm:git:[email protected]:BancVue/GradlePluginsCore.git" | ||
} | ||
} | ||
} | ||
} | ||
|
||
uploadArchives { | ||
repositories.mavenDeployer { | ||
addFilter("test") { Artifact artifact, file -> | ||
(artifact.name =~ /.*-test$/).matches() | ||
} | ||
addFilter("default", new DefaultPublishFilter(it)) | ||
|
||
getActivePomFilters().each { PomFilter pomFilter -> | ||
pomFilter.setPomTemplate(pom.effectivePom) | ||
} | ||
} | ||
publishing_ext { | ||
publication("mainTest") | ||
} | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
addFilter("test") { Artifact artifact, file -> | ||
(artifact.name =~ /.*-test$/).matches() | ||
bintray { | ||
user = 'bancvue' | ||
key = '--changeme--' | ||
|
||
publications = ['gradleCore', 'gradleCoreTest'] | ||
dryRun = false | ||
publish = false | ||
pkg { | ||
repo = 'maven' | ||
userOrg = 'bancvue' | ||
name = project.ext['artifactId'] | ||
desc = project.description | ||
websiteUrl = 'https://github.com/BancVue/gradle-core' | ||
issueTrackerUrl = 'https://github.com/BancVue/gradle-core/issues' | ||
vcsUrl = 'https://github.com/BancVue/gradle-core.git' | ||
licenses = ['Apache-2.0'] | ||
labels = ['gradle'] | ||
publicDownloadNumbers = true | ||
version { | ||
vcsTag = project.version | ||
attributes = ['gradle-plugin': 'com.bancvue.core-oss:com.bancvue:gradle-core'] | ||
} | ||
addFilter("default", new DefaultPublishFilter(it)) | ||
} | ||
} |
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,3 +1,4 @@ | ||
group=com.bancvue | ||
artifactId=gradle-core | ||
version=0.20-SNAPSHOT | ||
description=Gradle plugins for general project development |
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
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
Oops, something went wrong.