Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 32 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -80,4 +108,6 @@ bintray {
}
bintrayUpload.dependsOn assemble

task wrapper(type: Wrapper) { gradleVersion = '2.13' }

defaultTasks "build"
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.