diff --git a/.gitignore b/.gitignore index 2675cee..a7c43c8 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ out/ target/ bin/ src/main/resources/web/help/onlinehelp +src/main/localizer classes/ # Eclipse diff --git a/build.gradle b/build.gradle index 467a565..fc14073 100644 --- a/build.gradle +++ b/build.gradle @@ -36,6 +36,7 @@ build.dependsOn jpi task deleteGeneratedSrcLocalizer(type: Delete) { delete "build/generated-src/localizer" + delete "src/main/localizer" } localizer.dependsOn deleteGeneratedSrcLocalizer @@ -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.+' } @@ -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' @@ -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