-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
56 lines (46 loc) · 1.8 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
plugins {
id 'com.github.hierynomus.license' version '0.16.1' apply false
}
// Projects to be published with maven-publish
ext.publishedProjects = ['secp-api', 'secp-ffm', 'secp-bouncy']
subprojects { sub ->
apply plugin: 'java'
apply plugin: 'groovy'
//apply plugin: 'test-report-aggregation'
version = secpVersion // set in gradle.properties
group = 'org.bitcoinj.secp'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
testImplementation "org.junit.jupiter:junit-jupiter-api:5.10.0"
testImplementation "org.junit.jupiter:junit-jupiter-params:5.10.0"
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.10.0"
}
java {
if (sub.name in publishedProjects) {
withJavadocJar()
}
withSourcesJar()
toolchain {
// `languageVersion` is used to configure the "Java Toolchain" used for the build. This includes `javac`,
// `jlink`, and the `jpackage` tool.
// See `gradle.properties` for the setting of `javaToolchainVersion` and other setting that are used
// to find and/or download JDK versions.
languageVersion = JavaLanguageVersion.of(javaToolchainVersion)
vendor = JvmVendorSpec.matching(javaToolchainVendor)
}
}
test {
useJUnitPlatform()
def userHome = System.getProperty("user.home")
systemProperty "java.library.path", findProperty("javaPath") ?: "${userHome}/.nix-profile/lib"
}
tasks.withType(JavaCompile).configureEach {
options.release = 22
}
}
apply from: 'gradle/licenseCheck.gradle'
apply from: 'gradle/maven-publish.gradle'