Commits

shemnon committed 291c307

setup to build and deploy to cloudbees

Comments (0)

Files changed (2)

+task wrapper(type: Wrapper) {
+    gradleVersion = '1.2'
+}
 version = '0.0.0-SNAPSHOT'
 
 repositories {
-  //mavenRepo urls:'http://bitbucket somewhere'
-  mavenCentral()
+    //mavenRepo urls:'http://bitbucket somewhere'
+    mavenCentral()
 }
 
 dependencies {
     compile files("${System.properties['java.home']}/../lib/ant-javafx.jar")
 }
 
+uploadArchives {
+    repositories {
+        mavenDeployer {
+            def credentials = [
+                    userName: System.getProperty('deploy.username'),
+                    password: System.getProperty('deploy.password')
+            ]
+            println credentials
+            repository(id: 'cloudbees',
+                    url: uri('https://repository-javafx-gradle-plugin.forge.cloudbees.com/release/'),
+                    authentication: credentials)
+            snapshotRepository(id: 'cloudbees',
+                    url: uri('https://repository-javafx-gradle-plugin.forge.cloudbees.com/snapshot/'),
+                    authentication: credentials)
+        }
+    }
+}
+
+