Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Open-RIO/ToastAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
JaciBrunning committed Mar 8, 2015
2 parents 9133817 + 8d87f08 commit 0279bb4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 22 deletions.
53 changes: 31 additions & 22 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
}
}
dependencies {
classpath group: 'jaci.openrio.gradle', name: 'GradleRIO', version: '1.1.5' //Change this line if you wish to Update GradleRIO
classpath group: 'jaci.openrio.gradle', name: 'GradleRIO', version: '1.1.6' //Change this line if you wish to Update GradleRIO
}
}

Expand All @@ -27,11 +27,18 @@ gradlerio.robotClass = "jaci.openrio.toast.core.Toast" //The class for the ma
gradlerio.team = "5333" //Your FRC team number (e.g. 5333 for team 'Can't C#', or 47 for Chief Delphi)
//gradlerio.rioIP = "10.53.33.20" //Uncomment to specify the IP address of the RIO

ext.mavenProps = file "../maven.properties"
mavenProps.withReader {
def prop = new Properties()
prop.load(it)
project.ext.mavenProps = new ConfigSlurper().parse prop
def maven = true

try {
ext.mavenProps = file "../maven.properties"
mavenProps.withReader {
def prop = new Properties()
prop.load(it)
project.ext.mavenProps = new ConfigSlurper().parse prop
}
} catch (Exception e) {
println "Could not load Maven Properties... You are not a developer!"
maven = false
}

ext.settings = file "build.settings"
Expand Down Expand Up @@ -108,30 +115,32 @@ task src(type: Jar) {
}

task raw(type: Jar) {
classifier = 'raw'
from sourceSets.main.output
classifier = 'raw'
from sourceSets.main.output
}

artifacts {
//archives genJavadoc
archives raw
}
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
repository(url: mavenProps.jaci.url) {
authentication(userName: mavenProps.jaci.user, password: mavenProps.jaci.auth)
}
if (maven) {
repositories.mavenDeployer {
configuration = configurations.deployerJars
repository(url: mavenProps.jaci.url) {
authentication(userName: mavenProps.jaci.user, password: mavenProps.jaci.auth)
}

pom {
groupId = project.group
version = project.version
artifactId = project.archivesBaseName
project {
name project.archivesBaseName
packaging 'jar'
description 'Toast API Module Loader '
}
pom {
groupId = project.group
version = project.version
artifactId = project.archivesBaseName
project {
name project.archivesBaseName
packaging 'jar'
description 'Toast API Module Loader '
}
}
}
}
}
Expand Down
Binary file removed gradle/libs/GradleRIO.jar
Binary file not shown.

0 comments on commit 0279bb4

Please sign in to comment.