Skip to content

Commit

Permalink
Released 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sten Roger Sandvik committed Jan 10, 2014
1 parent 5af10a2 commit b8100e3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 11 deletions.
36 changes: 31 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
buildscript {
repositories {
maven { url 'http://jcenter.bintray.com' }
jcenter()
}

dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.3'
}
}

apply plugin: 'idea'
apply plugin: 'groovy'
apply plugin: 'maven-publish'
apply plugin: 'bintray'

group = 'com.moowork.gradle'

def compatibilityVersion = 1.7
sourceCompatibility = compatibilityVersion
targetCompatibility = compatibilityVersion

repositories {
mavenCentral()
}
Expand All @@ -35,7 +38,6 @@ task groovydocJar( type: Jar ) {
}

artifacts {
archives jar
archives sourcesJar
archives groovydocJar
}
Expand All @@ -46,13 +48,36 @@ publishing {
from components.java
artifact sourcesJar
artifact groovydocJar

pom.withXml {
def root = asNode()
root.appendNode( 'name', 'Node Gralde Plugin' )
root.appendNode( 'description', 'A gradle plugin for executing NodeJS scripts.' )
root.appendNode( 'inceptionYear', '2013' )

def scm = root.appendNode( 'scm' )
scm.appendNode( 'url', 'https://github.com/srs/gradle-node-plugin' )
scm.appendNode( 'connection', 'scm:https://srs@github.com/srs/gradle-node-plugin.git' )
scm.appendNode( 'developerConnection', 'scm:git://github.com/srs/gradle-node-plugin.git' )

def license = root.appendNode( 'licenses' ).appendNode( 'license' )
license.appendNode( 'name', 'The Apache Software License, Version 2.0' )
license.appendNode( 'url', 'http://www.apache.org/licenses/LICENSE-2.0.txt' )
license.appendNode( 'distribution', 'repo' )

def developers = root.appendNode( 'developers' )
def srs = developers.appendNode( 'developer' )
srs.appendNode( 'id', 'srs' )
srs.appendNode( 'name', 'Sten Roger Sandvik' )
srs.appendNode( 'email', 'stenrs@gmail.com' )
}
}
}
}

bintray {
user = bintrayUser
key = bintrayKey
user = project.hasProperty( 'bintrayUser' ) ? project.getProperty( 'bintrayUser' ) : null
key = project.hasProperty( 'bintrayKey' ) ? project.getProperty( 'bintrayKey' ) : null
publications = ['mavenJava']

pkg {
Expand All @@ -61,3 +86,4 @@ bintray {
licenses = ['Apache-2.0']
}
}

7 changes: 1 addition & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#
# Current version
#
version = 0.2-SNAPSHOT
version = 0.2

#
# Properties used for publishing artifacts
#
bintrayUser = user
bintrayKey = key

0 comments on commit b8100e3

Please sign in to comment.