Skip to content

Commit

Permalink
Fix #122 Groovy and bdn are marked to be non transivive and groovy pa…
Browse files Browse the repository at this point in the history
…cakges are marked as optional for OSGi.
  • Loading branch information
Nikolas Falco committed Jun 27, 2017
1 parent d23b06b commit ee2e353
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions build.gradle
Expand Up @@ -11,6 +11,7 @@ buildscript {

plugins {
id "org.sonarqube" version "1.2"
id "nebula.provided-base" version "3.0.3"
}

apply plugin: 'java'
Expand All @@ -20,6 +21,7 @@ apply plugin: 'maven'
apply plugin: 'jacoco'
apply plugin: 'signing'
apply plugin: 'pl.allegro.tech.build.axion-release'
apply plugin: 'nebula.optional-base'
apply from: 'gradle/dist.gradle'

sourceCompatibility = 1.7
Expand Down Expand Up @@ -65,9 +67,9 @@ dependencies {
'commons-codec:commons-codec:1.9',
'org.apache.commons:commons-lang3:3.3.2',
'org.apache.commons:commons-collections4:4.0',
'org.codehaus.groovy:groovy-all:2.3.2',
'biz.aQute.bnd:bndlib:2.3.0',
'org.threeten:threetenbp:1.3.3'
'org.threeten:threetenbp:1.3.3'
compile 'org.codehaus.groovy:groovy-all:2.3.2', optional
compile 'biz.aQute.bnd:bndlib:2.3.0', optional

testCompile 'org.spockframework:spock-core:0.7-groovy-2.0',
'commons-io:commons-io:2.4',
Expand Down Expand Up @@ -98,6 +100,12 @@ task sourcesJar(type: Jar) {
classifier = 'sources'
}

jar {
manifest {
instruction 'Import-Package', 'groovy.*;resolution:=optional, org.codehaus.groovy*;resolution:=optional, *'
}
}

artifacts {
archives jar
archives javadocJar
Expand Down

0 comments on commit ee2e353

Please sign in to comment.