Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

derived common gradle properties, settings and tasks

  • Loading branch information...
commit 057c95eb21eace30600b33c33851132113353d4b 1 parent bcfef24
@musketyr musketyr authored
Showing with 27 additions and 24 deletions.
  1. +26 −0 common-nexus.gradle
  2. +1 −24 common.gradle
View
26 common-nexus.gradle
@@ -0,0 +1,26 @@
+/** Add following snippet to your build script to enable nexus plugin */
+/*
+buildscript {
+ repositories {
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.2'
+ }
+}
+*/
+
+apply plugin: 'maven'
+apply plugin: 'nexus'
+
+tasks.withType(Upload) { // map the groovy configuration to compile in the pom
+ repositories.withType(MavenResolver) {
+ pom.scopeMappings.addMapping(1, configurations.groovy, 'compile')
+ }
+}
+
+boolean skipSigningVal = !hasProperty('skipSigning') || skipSigning != 'true'
+nexus {
+ sign = skipSigningVal
+}
View
25 common.gradle
@@ -4,20 +4,10 @@ final appEngineVersion = '1.7.3'
final gaelykLatestVersion = '2.0-SNAPSHOT'
final gaelykGradleVersion = '1.2'
-buildscript {
- repositories {
- mavenCentral()
- }
-
- dependencies {
- classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.2'
- }
-}
-
repositories {
mavenCentral()
maven { // for Gaelyk Snapshots
- url: 'https://oss.sonatype.org/content/repositories/snapshots'
+ url 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven { // for Spock Groovy 2.0 Support
url "http://oss.sonatype.org/content/repositories/snapshots/"
@@ -30,27 +20,14 @@ repositories {
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'idea'
-apply plugin: 'maven'
-apply plugin: 'nexus'
sourceCompatibility = 1.6
targetCompatibility = 1.6
-tasks.withType(Upload) { // map the groovy configuration to compile in the pom
- repositories.withType(MavenResolver) {
- pom.scopeMappings.addMapping(1, configurations.groovy, 'compile')
- }
-}
-
task wrapper(type: Wrapper) {
gradleVersion = gaelykGradleVersion
}
-boolean skipSigningVal = !hasProperty('skipSigning') || skipSigning != 'true'
-nexus {
- sign = skipSigningVal
-}
-
configurations.all {
resolutionStrategy.cacheChangingModulesFor 60, 'minutes'
}
Please sign in to comment.
Something went wrong with that request. Please try again.