Skip to content

Commit

Permalink
Commit javadoc build task
Browse files Browse the repository at this point in the history
  • Loading branch information
JaciBrunning committed Jan 21, 2015
1 parent f1376ee commit 777403b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions release/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,12 @@ jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest robotManifest
}

task genJavadoc(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives genJavadoc
}
6 changes: 3 additions & 3 deletions src/main/groovy/jaci/openrio/gradle/GradleRIO.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ class GradleRIO implements Plugin<Project> {

project.repositories.add(project.repositories.mavenCentral())

def compileConfig = project.getConfigurations().create('compile')
project.dependencies.add(compileConfig.name, project.fileTree(dir: apiDest + "lib", include: "*.jar", exclude: "*-sources.jar"))
project.getConfigurations().maybeCreate('compile')
project.dependencies.add('compile', project.fileTree(dir: apiDest + "lib", include: "*.jar", exclude: "*-sources.jar"))

def sshAntTask = project.getConfigurations().create('sshAntTask')
def sshAntTask = project.getConfigurations().maybeCreate('sshAntTask')
project.dependencies.add(sshAntTask.name, 'org.apache.ant:ant-jsch:1.7.1')
project.dependencies.add(sshAntTask.name, 'jsch:jsch:0.1.29')

Expand Down

0 comments on commit 777403b

Please sign in to comment.