Browse Source

Merge pull request #124 from lyze237/master

Added compileOnly to "api" dependencies in plugins.
pull/125/head
Decebal Suiu 8 years ago committed by GitHub
parent
commit
8bb6410957
  1. 2
      demo_gradle/plugins/plugin1/build.gradle
  2. 2
      demo_gradle/plugins/plugin2/build.gradle

2
demo_gradle/plugins/plugin1/build.gradle

@ -23,7 +23,7 @@ task plugin(type: Jar) {
assemble.dependsOn plugin assemble.dependsOn plugin
dependencies { dependencies {
compile project(':api') compileOnly project(':api') // compileOnly important!!! We do not want to put the api into the zip file since the main program has it already!
compile 'ro.fortsoft.pf4j:pf4j:1.1.1' compile 'ro.fortsoft.pf4j:pf4j:1.1.1'
compile 'org.apache.commons:commons-lang3:3.0' compile 'org.apache.commons:commons-lang3:3.0'
testCompile group: 'junit', name: 'junit', version: '4.+' testCompile group: 'junit', name: 'junit', version: '4.+'

2
demo_gradle/plugins/plugin2/build.gradle

@ -23,7 +23,7 @@ task plugin(type: Jar) {
assemble.dependsOn plugin assemble.dependsOn plugin
dependencies { dependencies {
compile project(':api') compileOnly project(':api') // compileOnly important!!! We do not want to put the api into the zip file since the main program has it already!
compile 'ro.fortsoft.pf4j:pf4j:1.1.1' compile 'ro.fortsoft.pf4j:pf4j:1.1.1'
compile 'org.apache.commons:commons-lang3:3.0' compile 'org.apache.commons:commons-lang3:3.0'
testCompile group: 'junit', name: 'junit', version: '4.+' testCompile group: 'junit', name: 'junit', version: '4.+'

Loading…
Cancel
Save