-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
99 lines (87 loc) · 2.74 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'org.unbroken-dome.gradle-plugins:gradle-testsets-plugin:3.0.1'
}
}
plugins {
id 'de.undercouch.download' version '4.1.1'
id 'com.diffplug.gradle.spotless' version '3.25.0'
id 'io.codearte.nexus-staging' version '0.22.0'
id 'de.marcphilipp.nexus-publish' version '0.4.0'
id 'org.ajoberstar.git-publish' version '3.0.0'
}
description = 'Web3j Eth2 related projects.'
subprojects {
apply plugin: 'kotlin'
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$jupiterVersion"
testImplementation "com.willowtreeapps.assertk:assertk:$assertkVersion"
}
apply {
[
'bintray',
'publish',
'jacoco',
'java',
'javadoc',
'repositories',
'spotless'
].each { buildScript ->
download {
src "https://raw.githubusercontent.com/web3j/build-tools/master/gradle/$buildScript/build.gradle"
dest "$rootDir/gradle/$buildScript/build.gradle"
overwrite true
quiet true
onlyIfModified true
}
from("$rootDir/gradle/$buildScript/build.gradle")
}
}
apply plugin: 'org.unbroken-dome.test-sets'
testSets {
integrationTest {
dirName = 'integration-test'
}
}
tasks.withType(Test) {
useJUnitPlatform()
systemProperties = [
'junit.jupiter.extensions.autodetection.enabled': 'true',
'junit.jupiter.testinstance.lifecycle.default' : 'per_class'
]
reports.html.destination = file("${reporting.baseDir}/${name}")
}
publishing {
publications {
maven(MavenPublication) {
pom {
scm {
url = "/~https://github.com/web3j/web3j-eth2"
connection = "scm:/~https://github.com/web3j/web3j-eth2.git"
developerConnection = "scm:git://github.com/web3j/web3j-eth2.git"
}
}
}
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileIntegrationTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
sourceCompatibility = 1.8
}