37 lines
781 B
Groovy
37 lines
781 B
Groovy
import org.gradle.plugins.ide.eclipse.model.AccessRule
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'maven'
|
|
apply plugin: 'eclipse'
|
|
|
|
eclipse {
|
|
classpath {
|
|
file {
|
|
whenMerged {
|
|
def jre = entries.find { it.path.contains 'org.eclipse.jdt.launching.JRE_CONTAINER' }
|
|
jre.accessRules.add(new AccessRule('0', 'javax/smartcardio/**'))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':lib')
|
|
compile 'org.hid4java:hid4java:0.5.0'
|
|
}
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
classifier = 'javadoc'
|
|
from javadoc.destinationDir
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
archives javadocJar
|
|
}
|