Skip to content
Snippets Groups Projects
Commit 8a79d10d authored by Daniel Felipe González Obando's avatar Daniel Felipe González Obando
Browse files

edited to include class files on source jar

parent 2e602803
No related branches found
No related tags found
No related merge requests found
...@@ -4,13 +4,20 @@ apply plugin: 'eclipse' ...@@ -4,13 +4,20 @@ apply plugin: 'eclipse'
version = '0.1.0' version = '0.1.0'
println project.name println project.name
configurations {
extraLibs // configuration that holds jars to include in the jar
}
repositories { repositories {
mavenCentral() mavenCentral()
jcenter() jcenter()
} }
println "ICY_HOME=${System.env.ICY_HOME}"
dependencies { dependencies {
compile 'org.slf4j:slf4j-api:1.7.21' extraLibs 'org.slf4j:slf4j-api:1.7.21'
configurations.implementation.extendsFrom(configurations.extraLibs)
compile files("${System.env.ICY_HOME}/icy.jar") // Icy core compile files("${System.env.ICY_HOME}/icy.jar") // Icy core
compile files("${System.env.ICY_HOME}/lib/bioformats.jar") // bioformats compile files("${System.env.ICY_HOME}/lib/bioformats.jar") // bioformats
...@@ -43,9 +50,11 @@ eclipse { ...@@ -43,9 +50,11 @@ eclipse {
} }
} }
task sourcesJar(type: Jar, dependsOn: classes) { task sourcesJar(type: Jar) {
classifier = 'sources' classifier = 'sources'
from sourceSets.main.allSource from sourceSets.main.output
from sourceSets.main.java
from configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) }
} }
task javadocJar(type: Jar, dependsOn: javadoc) { task javadocJar(type: Jar, dependsOn: javadoc) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment