Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JaciBrunning committed Jan 17, 2015
1 parent 00dfe73 commit bd6b9fd
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.gradle/
build/
releases/
release/gradle/libs/
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ dependencies {
class BuildGradle implements Plugin<Project> {
void apply(Project project) {
project.task('release', dependsOn: 'build') << {
File dest = new File("release/gradle/GradleRIO.jar")
dest << new File("build/libs/GradleRIO.jar")
ant.copy(file:"build/libs/GradleRIO.jar",
todir: "release/gradle/libs")

ant.zip(destfile: "releases/GradleRIO.zip",
basedir: "release")
}
Expand Down
19 changes: 15 additions & 4 deletions release/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
/**
Template file for classes using GradleRIO
@author Jaci
Template file for classes using GradleRIO
@author Jaci
*/

apply from: "gradle/GradleRIO.jar" //Apply the GradleRIO plugin
buildscript {
repositories {
flatDir name: 'libs', dirs: 'gradle/libs'
}
dependencies {
classpath group: 'jaci.openrio.gradle', name: 'GradleRIO', version: '0.1.0'
}
}

apply plugin: "GradleRIO" //Apply the GradleRIO plugin
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'

gradlerio.robotClass = "org.usfirst.frc.team0000.Robot" //The class for the main Robot Class. Used in manifest
gradlerio.team = "5333" //Your FRC team number (e.g. 5333 for team 'Can't C#', or 47 for Chief Delphi)
Expand All @@ -16,5 +27,5 @@ def robotManifest = {
}

jar {
manifest commonManifest
manifest robotManifest
}
1 change: 0 additions & 1 deletion release/gradle/GradleRIO.jar

This file was deleted.

3 changes: 3 additions & 0 deletions src/main/groovy/jaci/openrio/gradle/GradleRIO.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package jaci.openrio.gradle;

import org.gradle.api.*;

class GradleRIO implements Plugin<Project> {
Expand Down Expand Up @@ -120,4 +122,5 @@ class GradleRIO implements Plugin<Project> {
class GradleRIOExtensions {
String team = "0000";
String rioIP = "{DEFAULT}";
String robotClass = "org.usfirst.frc.team0000.Robot"
}

0 comments on commit bd6b9fd

Please sign in to comment.