-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle
78 lines (67 loc) · 2.19 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
buildscript {
ext.kotlin_version = '1.9.24'
repositories { jcenter() }
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins {
id 'idea'
id 'jacoco'
id "com.jfrog.bintray" version "1.8.4"
id "com.diffplug.spotless" version "6.25.0"
id 'io.codearte.nexus-staging' version '0.30.0'
id "de.marcphilipp.nexus-publish" version "0.4.0"
id 'org.jetbrains.kotlin.jvm' version "$kotlin_version"
id 'de.undercouch.download' version '4.1.2'
id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlin_version"
}
jacoco {
toolVersion = "0.8.10"
}
description 'web3j-sokt - Kotlin-based wrapper for multiple installations of the solidity compiler (solc)'
apply {
[
'bintray',
'jacoco',
'java',
'javadoc',
'repositories',
'publish',
'spotless',
'junit'
].each { buildScript ->
download {
src "https://raw.githubusercontent.com/hyperledger/web3j-build-tools/main/gradle/$buildScript/build.gradle"
dest "$rootDir/gradle/$buildScript/build.gradle"
overwrite false
quiet true
onlyIfModified true
}
from("$rootDir/gradle/$buildScript/build.gradle")
}
}
//apply plugin: 'kotlinx-serialization'
group 'org.web3j'
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version",
"org.apache.commons:commons-lang3:3.14.0",
"com.github.zafarkhaja:java-semver:0.10.2",
"org.jetbrains.kotlinx:kotlinx-serialization-core:1.6.3",
"org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3",
"org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
testImplementation "org.junit.jupiter:junit-jupiter-engine:$junitVersion",
"org.junit.jupiter:junit-jupiter-api:$junitVersion",
"org.junit.jupiter:junit-jupiter-params:$junitVersion"
}
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
}