Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ out/
target/
bin/
src/main/resources/web/help/onlinehelp
src/main/localizer
classes/

# Eclipse
Expand Down
16 changes: 15 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ build.dependsOn jpi

task deleteGeneratedSrcLocalizer(type: Delete) {
delete "build/generated-src/localizer"
delete "src/main/localizer"
}

localizer.dependsOn deleteGeneratedSrcLocalizer
Expand Down Expand Up @@ -64,7 +65,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'org.jenkins-ci.tools:gradle-jpi-plugin:0.9.1'
classpath 'org.jenkins-ci.tools:gradle-jpi-plugin:0.12.2'
classpath 'org.bitbucket.grimrose:gradle-obake-plugin:0.5'
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:1.12.+'
}
Expand All @@ -79,6 +80,9 @@ jenkinsPlugin {
gitHubUrl = 'https://github.com/jenkinsci/xldeploy-plugin'


// the output directory for the localizer task relative to the project root, defaults to the value shown
localizerOutputDir = "${project.projectDir}/src/main/localizer"

developers {
developer {
id 'XebiaLabsCI'
Expand All @@ -88,6 +92,16 @@ jenkinsPlugin {
}
}

sourceSets {
main {
java {
srcDir 'src/main/java'
srcDir 'src/main/localizer'
}

}
}

// Per default Jenkins loads every jar from WEB-INF/lib, along with the contents of WEB-INF/classes after the classes and libraries of the core.
// If you want to have your own libaries loaded before these (e.g. you want a newer version of velocity or an other library),
// you can configure your plugin to use a different classloader strategy
Expand Down