Skip to content

Commit 7119dcc

Browse files
authored
Merge pull request #89 from LFDT-web3j/release/0.6.1
release 0.6.1
2 parents 2b3bbba + 6e6ccee commit 7119dcc

File tree

4 files changed

+47
-22
lines changed

4 files changed

+47
-22
lines changed

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,29 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6-
# [0.7.0](https://github.com/LFDT-web3j/web3j-solidity-gradle-plugin/releases/tag/v0.7.0) (Upcoming)
6+
# [0.6.2]() (Upcoming)
77

88
### Bug Fixes
99

1010
*
1111

1212
### Features
1313

14+
*
15+
16+
### BREAKING CHANGES
17+
18+
*
19+
20+
# [0.6.1](https://github.com/LFDT-web3j/web3j-solidity-gradle-plugin/releases/tag/v0.6.1) (2026-01-15)
21+
22+
### Bug Fixes
23+
24+
* Fix to link to the 'processResources' task of the current source set [#88](https://github.com/LFDT-web3j/web3j-solidity-gradle-plugin/pull/88)
25+
* Fix jacoco gradle file for publishing [#99](https://github.com/hyperledger/web3j-solidity-gradle-plugin/pull/89)
26+
27+
### Features
28+
1429
* Full Gradle 9 compatibility [#86](https://github.com/hyperledger/web3j-solidity-gradle-plugin/pull/86)
1530
* Full Gradle Configuration Cache compatibility [#86](https://github.com/hyperledger/web3j-solidity-gradle-plugin/pull/86)
1631

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ repositories {
5252
}
5353

5454
ext {
55-
soktVersion = '0.5.0'
55+
soktVersion = '0.6.0'
5656
kotlinxSerializationVersion = '1.6.3' // required to CompileStatic with sokt involved
5757
junitVersion = '5.9.3'
5858
assertjVersion = '3.25.3'

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group=org.web3j.solidity
2-
version=0.6.0
2+
version=0.6.1
33

44
# Use Local Build Cache: https://docs.gradle.org/current/userguide/build_cache.html
55
org.gradle.caching=true

gradle/jacoco/build.gradle

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,43 @@
11
apply plugin: 'jacoco'
22

3+
def javaProjects = subprojects.findAll { p ->
4+
p.plugins.hasPlugin('java') || p.plugins.hasPlugin('java-library')
5+
}
6+
37
tasks.register('jacocoRootTestReport', JacocoReport) {
4-
dependsOn = subprojects.test
5-
getSourceDirectories().from(subprojects.sourceSets.main.allSource.srcDirs)
6-
getAdditionalSourceDirs().from(subprojects.sourceSets.main.allSource.srcDirs)
7-
getClassDirectories().from(subprojects.sourceSets.main.output)
8-
getExecutionData().from(subprojects.jacocoTestReport.executionData)
8+
// run tests + create per-project jacoco reports first
9+
dependsOn(javaProjects.collect { it.tasks.named('test') })
10+
dependsOn(javaProjects.collect { it.tasks.named('jacocoTestReport') })
11+
12+
def mainSrcDirs = files(javaProjects.collect { it.sourceSets.main.allSource.srcDirs })
13+
sourceDirectories.setFrom(mainSrcDirs)
14+
additionalSourceDirs.setFrom(mainSrcDirs)
15+
16+
// execution data from subprojects
17+
executionData.setFrom(files(javaProjects.collect {
18+
it.tasks.named('jacocoTestReport').get().executionData
19+
}))
20+
21+
// classes with excludes (no afterEvaluate needed)
22+
def allMainOutputs = files(javaProjects.collect { it.sourceSets.main.output })
23+
classDirectories.setFrom(allMainOutputs.asFileTree.matching {
24+
exclude(
25+
'org/web3j/abi/datatypes/generated/**',
26+
'org/web3j/tuples/generated/**',
27+
'org/web3j/ens/contracts/generated/**',
28+
'org/gradle/**'
29+
)
30+
})
31+
932
reports {
1033
xml.required.set(true)
1134
}
1235

1336
doFirst {
14-
getExecutionData().from(executionData.findAll { it.exists() })
15-
}
16-
17-
afterEvaluate {
18-
getClassDirectories().from(files(classDirectories.files.collect {
19-
fileTree(dir: it,
20-
exclude: [
21-
'org/web3j/abi/datatypes/generated/**',
22-
'org/web3j/tuples/generated/**',
23-
'org/web3j/ens/contracts/generated/**',
24-
'org/gradle/**'
25-
])
26-
}))
37+
executionData.setFrom(executionData.filter { it.exists() })
2738
}
2839
}
2940

3041
jacoco {
3142
toolVersion = "0.8.10"
3243
}
33-

0 commit comments

Comments
 (0)