Skip to content

Commit 7338fea

Browse files
committed
Remove all afterEvaluate.
1 parent b2758a6 commit 7338fea

File tree

5 files changed

+47
-49
lines changed

5 files changed

+47
-49
lines changed

gradle/check-codecoverage.gradle

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ jacoco {
55
}
66

77
jacocoTestReport {
8-
afterEvaluate {
9-
reports {
10-
xml.required = true
11-
html.required = project.hasProperty('reports')
12-
html.outputLocation = layout.buildDirectory.dir("jacocoHtml")
13-
}
8+
reports {
9+
xml.required = true
10+
html.required = project.hasProperty('reports')
11+
html.outputLocation = layout.buildDirectory.dir("jacocoHtml")
1412
}
1513
}
1614

gradle/publish-jar.gradle

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
jar {
2-
afterEvaluate {
3-
manifest.attributes << [
4-
'Built-By': System.properties['user.name'],
5-
'Created-By': "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
6-
'Implementation-Title': project.name,
7-
'Implementation-Version': project.version,
8-
]
9-
}
2+
manifest.attributes << [
3+
'Built-By': System.properties['user.name'],
4+
'Created-By': "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
5+
'Implementation-Title': project.name,
6+
'Implementation-Version': project.version,
7+
]
108
}

gradle/publish-maven.gradle

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,43 +13,40 @@ publishing {
1313
fromResolutionResult()
1414
}
1515
}
16-
afterEvaluate { project ->
17-
artifactId = project.name
18-
pom {
19-
name = project.name
20-
description = project.description
21-
url = 'http://github.com/SimY4/xpath-to-xml'
22-
inceptionYear = '2017'
16+
pom {
17+
name = project.name
18+
description = project.description
19+
url = 'http://github.com/SimY4/xpath-to-xml'
20+
inceptionYear = '2017'
2321

24-
properties = [
25-
'info.releaseNotesURL': 'https://github.com/SimY4/xpath-to-xml/releases',
26-
'info.versionScheme': 'semver-spec'
27-
]
22+
properties = [
23+
'info.releaseNotesURL': 'https://github.com/SimY4/xpath-to-xml/releases',
24+
'info.versionScheme': 'semver-spec'
25+
]
2826

29-
scm {
30-
connection = 'scm:git:https://github.com/SimY4/xpath-to-xml'
31-
developerConnection = 'scm:git:https://github.com/SimY4/xpath-to-xml'
32-
url = 'http://github.com/SimY4/xpath-to-xml'
33-
}
27+
scm {
28+
connection = 'scm:git:https://github.com/SimY4/xpath-to-xml'
29+
developerConnection = 'scm:git:https://github.com/SimY4/xpath-to-xml'
30+
url = 'http://github.com/SimY4/xpath-to-xml'
31+
}
3432

35-
issueManagement {
36-
system = 'GitHub'
37-
url = 'https://github.com/SimY4/xpath-to-xml/issues'
38-
}
33+
issueManagement {
34+
system = 'GitHub'
35+
url = 'https://github.com/SimY4/xpath-to-xml/issues'
36+
}
3937

40-
licenses {
41-
license {
42-
name = 'The Apache License, Version 2.0'
43-
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
44-
}
38+
licenses {
39+
license {
40+
name = 'The Apache License, Version 2.0'
41+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
4542
}
43+
}
4644

47-
developers {
48-
developer {
49-
id = 'SimY4'
50-
name = 'Alex Simkin'
51-
url = 'http://github.com/SimY4'
52-
}
45+
developers {
46+
developer {
47+
id = 'SimY4'
48+
name = 'Alex Simkin'
49+
url = 'http://github.com/SimY4'
5350
}
5451
}
5552
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This is a Gradle generated file for dependency locking.
22
# Manual edits can break the build and are not advised.
33
# This file is expected to be part of source control.
4-
com.fasterxml.jackson.core:jackson-annotations:2.19.0=compileClasspath,runtimeClasspath
5-
com.fasterxml.jackson.core:jackson-core:2.19.0=compileClasspath,runtimeClasspath
6-
com.fasterxml.jackson.core:jackson-databind:2.19.0=compileClasspath,runtimeClasspath
7-
com.fasterxml.jackson:jackson-bom:2.19.0=compileClasspath,runtimeClasspath
4+
com.fasterxml.jackson.core:jackson-annotations:2.19.1=compileClasspath,runtimeClasspath
5+
com.fasterxml.jackson.core:jackson-core:2.19.1=compileClasspath,runtimeClasspath
6+
com.fasterxml.jackson.core:jackson-databind:2.19.1=compileClasspath,runtimeClasspath
7+
com.fasterxml.jackson:jackson-bom:2.19.1=compileClasspath,runtimeClasspath
88
empty=

xpath-to-json-json/gradle.lockfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This is a Gradle generated file for dependency locking.
2+
# Manual edits can break the build and are not advised.
3+
# This file is expected to be part of source control.
4+
org.json:json:20250517=compileClasspath,runtimeClasspath
5+
empty=

0 commit comments

Comments
 (0)