diff --git a/build.gradle b/build.gradle index e70ed62..fd91390 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ buildscript { jcenter() } dependencies { - classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:0.6" + classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6" classpath "org.gradle.api.plugins:gradle-nexus-plugin:0.7.1" classpath "com.github.ben-manes:gradle-versions-plugin:0.12.0" } @@ -12,6 +12,7 @@ apply plugin: 'com.github.ben-manes.versions' apply plugin: "com.jfrog.bintray" apply plugin: "groovy" apply plugin: "nexus" +apply plugin: "maven-publish" apply from: "$rootDir/gradle/credentials.gradle" group = "com.github.robfletcher" @@ -53,15 +54,35 @@ test { } task sourceJar(type: Jar) { + classifier = 'sources' from sourceSets.main.allSource } +publishing { + publications { + mavenGroovy(MavenPublication) { + from components.java + + artifact sourceJar + + pom.withXml { + Node license = new Node(null, 'license') + license.appendNode('name', 'Apache License, Version 2.0') + license.appendNode('url', 'https://www.apache.org/licenses/LICENSE-2.0.txt') + license.appendNode('distribution', 'repo') + + asNode().appendNode('licenses').append(license) + } + } + } +} + bintray { user = project.bintrayUsername key = project.bintrayApiKey publish = true dryRun = false - configurations = ["archives"] + publications = ['mavenGroovy'] pkg { userOrg = "robfletcher" @@ -70,6 +91,13 @@ bintray { licenses = ["Apache-2.0"] labels = ["compass"] desc = "Gradle plugin for Sass & Compass compilation" + + websiteUrl = 'https://github.com/robfletcher/gradle-compass' + issueTrackerUrl = 'https://github.com/robfletcher/gradle-compass/issues' + vcsUrl = 'https://github.com/robfletcher/gradle-compass.git' + + githubRepo = 'robfletcher/gradle-compass' + githubReleaseNotesFile = 'README.adoc' version { name = project.version @@ -80,4 +108,6 @@ bintray { } bintrayUpload.dependsOn assemble +task wrapper(type: Wrapper) { gradleVersion = '2.13' } + defaultTasks "build" diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index b761216..5ccda13 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 846cb77..5a8aef8 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Fri Aug 22 21:16:28 PDT 2014 +#Sun Jun 19 13:04:54 CEST 2016 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.11-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.13-bin.zip diff --git a/gradlew.bat b/gradlew.bat index aec9973..72d362d 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -46,7 +46,7 @@ echo location of your Java installation. goto fail :init -@rem Get command-line arguments, handling Windowz variants +@rem Get command-line arguments, handling Windows variants if not "%OS%" == "Windows_NT" goto win9xME_args if "%@eval[2+2]" == "4" goto 4NT_args