-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathbuild.gradle
74 lines (66 loc) · 1.96 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
plugins {
id 'idea'
id 'maven-publish'
id 'groovy'
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '1.2.1'
id 'com.diffplug.spotless' version '6.25.0'
id 'de.undercouch.download' version '4.1.2'
}
apply {
[
'jacoco',
'java',
'javadoc',
'repositories',
'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")
}
}
description = 'Solidity Gradle Plugin'
gradlePlugin {
website = 'https://web3j.io/'
vcsUrl = 'https://github.com/hyperledger/web3j-solidity-gradle-plugin'
plugins {
solidity {
id = 'org.web3j.solidity'
implementationClass = 'org.web3j.solidity.gradle.plugin.SolidityPlugin'
displayName = 'Solidity Plugin'
description = 'Gradle plugin providing tasks to compile Solidity contracts.'
tags = ['solidity', 'ethereum']
}
}
}
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
ext {
soktVersion = '0.4.0'
junitVersion = '5.9.3'
assertjVersion = '3.25.3'
systemRulesVersion = '1.19.0'
nodePluginVersion = '7.0.2'
}
dependencies {
implementation "org.web3j:web3j-sokt:$soktVersion"
implementation "com.github.node-gradle:gradle-node-plugin:$nodePluginVersion"
testImplementation "org.assertj:assertj-core:$assertjVersion"
testImplementation "com.github.stefanbirkner:system-rules:$systemRulesVersion"
}
spotless {
groovy {
excludeJava() // excludes all Java sources within the Groovy source dirs from formatting
licenseHeaderFile "$rootDir/gradle/spotless/java.license"
}
}