Files
i2p.i2p/core/build.gradle

66 lines
1.6 KiB
Groovy

apply plugin: 'java-library'
apply plugin: 'scala'
archivesBaseName = 'i2p'
sourceSets {
main {
java {
srcDir 'java/src'
exclude 'gnu/getopt'
exclude 'gnu/gettext'
}
resources {
srcDir 'java/src'
include 'gnu/getopt/*.properties'
}
}
test {
java {
srcDir 'java/test/junit'
exclude 'net/i2p/AllCoreTests.java'
exclude 'net/i2p/data/DataTestSuite.java'
exclude 'net/i2p/data/i2cp/I2CPTestSuite.java'
exclude {
it.name.endsWith('IT.java')
}
}
resources {
srcDir 'java/test/junit'
include 'net/i2p/crypto/eddsa/test.data'
include 'net/i2p/crypto/eddsa/math/baseDblPrecmp'
include 'net/i2p/crypto/eddsa/math/basePrecmp'
}
scala {
srcDir 'java/test/scalatest'
}
}
}
dependencies {
implementation 'gnu.getopt:java-getopt:1.0.13'
implementation 'org.gnu.gettext:libintl:0.18.3'
testCompile "org.scala-lang:scala-library:2.12.4"
testCompile 'org.scalatest:scalatest_2.12:3.0.4'
}
task scalaTest(dependsOn: ['testClasses'], type: JavaExec) {
main = 'org.scalatest.tools.Runner'
args = ['-R', 'build/classes/scala/test', '-o']
classpath = sourceSets.test.runtimeClasspath
}
test.dependsOn scalaTest
configurations {
tests
}
task testJar(type: Jar) {
baseName = 'i2p-test'
dependsOn classes
from sourceSets.test.output
}
artifacts {
tests testJar
}