diff options
author | Clay McCoy <github@claymccoy.com> | 2019-11-15 11:46:55 -0600 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2019-11-15 19:46:55 +0200 |
commit | 75dbeb0f94630be657758ad1fe5bdee81dc3f3d0 (patch) | |
tree | 2c400df58b1b9005deb4d28663bc9c761d4bde43 /demo_gradle/plugins | |
parent | 87b6d1906473b2d82d0f66530d783d2b9da9be6f (diff) | |
download | pf4j-75dbeb0f94630be657758ad1fe5bdee81dc3f3d0.tar.gz pf4j-75dbeb0f94630be657758ad1fe5bdee81dc3f3d0.zip |
Fix gradle demo (#349)
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.+' } |