Skip to content

Commit 542ec2f

Browse files
committed
Update gradle syntax to comply to gradle 9.0 standard
Signed-off-by: l-1squared <[email protected]>
1 parent ee045ae commit 542ec2f

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

build.gradle

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ plugins {
99
}
1010

1111

12-
1312
apply plugin: 'project-report'
1413

1514
description = 'JGiven - BDD in plain Java'
@@ -138,8 +137,6 @@ configure(subprojects.findAll { !it.name.contains("android") }) {
138137
apply plugin: 'org.asciidoctor.jvm.convert'
139138
apply plugin: 'maven-publish'
140139

141-
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11
142-
143140
dependencies {
144141
implementation libs.slf4j.api
145142

@@ -181,19 +178,23 @@ configure(subprojects.findAll { !it.name.contains("android") }) {
181178

182179
tasks.withType(Jar) {
183180
def now = new Date()
184-
manifest = project.manifest().attributes(
185-
'Built-By': "Gradle ${gradle.gradleVersion}",
186-
'Build-Date': now.format('yyyy-MM-dd HH:mm:ss.S'),
187-
'Copyright': "2013-" + now.format('yyyy') + " TNG Technology Consulting GmbH",
188-
'Implementation-Title': project.name,
181+
manifest {
182+
attributes(
183+
'Built-By' : "Gradle ${gradle.gradleVersion}",
184+
'Build-Date' : now.format('yyyy-MM-dd HH:mm:ss.S'),
185+
'Copyright' : "2013-" + now.format('yyyy') + " TNG Technology Consulting GmbH",
186+
'Implementation-Title' : project.name,
189187
'Implementation-Version': project.version,
190-
'Implementation-Vendor': 'TNG Technology Consulting GmbH',
191-
'License': 'Apache License v2.0, January 2004',
192-
'Specification-Title': project.name,
193-
'Specification-Version': project.version,
194-
'Specification-Vendor': 'TNG Technology Consulting GmbH',
195-
'Automatic-Module-Name' : "com.tngtech.jgiven.${project.name.replaceAll("-",".").replace("jgiven.","")}"
196-
)
188+
'Implementation-Vendor' : 'TNG Technology Consulting GmbH',
189+
'License' : 'Apache License v2.0, January 2004',
190+
'Specification-Title' : project.name,
191+
'Specification-Version' : project.version,
192+
'Specification-Vendor' : 'TNG Technology Consulting GmbH',
193+
'Automatic-Module-Name' : "com.tngtech.jgiven.${project.name.replaceAll("-", ".").replace("jgiven.", "")}"
194+
)
195+
}
196+
197+
197198
}
198199

199200
normalization {
@@ -211,6 +212,7 @@ configure(subprojects.findAll { !it.name.contains("android") }) {
211212
}
212213

213214
java {
215+
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11
214216
withJavadocJar()
215217
withSourcesJar()
216218
}

jgiven-future-java-tests/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
apply plugin: 'java'
2-
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_19
1+
plugins {
2+
id 'java'
3+
}
4+
java {
5+
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_19
6+
}
37

48
dependencies {
59
testImplementation project(':jgiven-core')

0 commit comments

Comments
 (0)