diff options
Diffstat (limited to 'demo_gradle/plugins')
-rw-r--r-- | demo_gradle/plugins/build.gradle | 6 | ||||
-rw-r--r-- | demo_gradle/plugins/plugin1/build.gradle | 1 | ||||
-rw-r--r-- | demo_gradle/plugins/plugin2/build.gradle | 1 | ||||
-rw-r--r-- | demo_gradle/plugins/plugin3/build.gradle | 5 |
4 files changed, 8 insertions, 5 deletions
diff --git a/demo_gradle/plugins/build.gradle b/demo_gradle/plugins/build.gradle index 104b17d..d27535b 100644 --- a/demo_gradle/plugins/build.gradle +++ b/demo_gradle/plugins/build.gradle @@ -3,20 +3,20 @@ subprojects { manifest { attributes 'Plugin-Class': "${pluginClass}", 'Plugin-Id': "${pluginId}", - 'Plugin-Version': "${version}", + 'Plugin-Version': "${archiveVersion}", 'Plugin-Provider': "${pluginProvider}" } } task plugin(type: Jar) { - baseName = "plugin-${pluginId}" + archiveBaseName = "plugin-${pluginId}" into('classes') { with jar } into('lib') { from configurations.compile } - extension('zip') + archiveExtension ='zip' } task assemblePlugin(type: Copy) { diff --git a/demo_gradle/plugins/plugin1/build.gradle b/demo_gradle/plugins/plugin1/build.gradle index 69791a7..f3f00a5 100644 --- a/demo_gradle/plugins/plugin1/build.gradle +++ b/demo_gradle/plugins/plugin1/build.gradle @@ -4,6 +4,7 @@ dependencies { compileOnly(group: 'org.pf4j', name: 'pf4j', version: "${pf4jVersion}") { exclude group: "org.slf4j" } + annotationProcessor(group: 'org.pf4j', name: 'pf4j', version: "${pf4jVersion}") compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.5' testCompile group: 'junit', name: 'junit', version: '4.+' } diff --git a/demo_gradle/plugins/plugin2/build.gradle b/demo_gradle/plugins/plugin2/build.gradle index 69791a7..f3f00a5 100644 --- a/demo_gradle/plugins/plugin2/build.gradle +++ b/demo_gradle/plugins/plugin2/build.gradle @@ -4,6 +4,7 @@ dependencies { compileOnly(group: 'org.pf4j', name: 'pf4j', version: "${pf4jVersion}") { exclude group: "org.slf4j" } + annotationProcessor(group: 'org.pf4j', name: 'pf4j', version: "${pf4jVersion}") compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.5' testCompile group: 'junit', name: 'junit', version: '4.+' } diff --git a/demo_gradle/plugins/plugin3/build.gradle b/demo_gradle/plugins/plugin3/build.gradle index c360e23..1860b61 100644 --- a/demo_gradle/plugins/plugin3/build.gradle +++ b/demo_gradle/plugins/plugin3/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.kotlin_version = '1.1.2-2' + ext.kotlin_version = '1.3.50' repositories { mavenCentral() @@ -21,8 +21,9 @@ dependencies { compileOnly(group: 'org.pf4j', name: 'pf4j', version: "${pf4jVersion}") { exclude group: "org.slf4j" } + kapt(group: 'org.pf4j', name: 'pf4j', version: "${pf4jVersion}") compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.5' - compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version" + compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" testCompile group: 'junit', name: 'junit', version: '4.+' } |