Skip to content

Commit 2d1e4f4

Browse files
committed
Update to Java 25
1 parent 090a9e8 commit 2d1e4f4

File tree

11 files changed

+284
-336
lines changed

11 files changed

+284
-336
lines changed

.gitattributes

Lines changed: 0 additions & 22 deletions
This file was deleted.

.gitignore

Lines changed: 32 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -1,170 +1,40 @@
1-
# IntelliJ
2-
target/
3-
.idea/
1+
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!gradle/wrapper/gradle-wrapper.properties
5+
!**/src/main/**/build/
6+
!**/src/test/**/build/
7+
8+
### IntelliJ IDEA ###
9+
.idea
10+
*.iws
411
*.iml
12+
*.ipr
513
out/
6-
.gradle
7-
8-
#################
9-
## Eclipse
10-
#################
14+
!**/src/main/**/out/
15+
!**/src/test/**/out/
1116

12-
*.pydevproject
17+
### Eclipse ###
18+
.apt_generated
19+
.classpath
20+
.factorypath
1321
.project
14-
.metadata
22+
.settings
23+
.springBeans
24+
.sts4-cache
1525
bin/
16-
tmp/
17-
*.tmp
18-
*.bak
19-
*.swp
20-
*~.nib
21-
local.properties
22-
.classpath
23-
.settings/
24-
.loadpath
25-
26-
# External tool builders
27-
.externalToolBuilders/
28-
29-
# Locally stored "Eclipse launch configurations"
30-
*.launch
31-
32-
# CDT-specific
33-
.cproject
34-
35-
# PDT-specific
36-
.buildpath
37-
38-
39-
#################
40-
## Visual Studio
41-
#################
42-
43-
## Ignore Visual Studio temporary files, build results, and
44-
## files generated by popular Visual Studio add-ons.
45-
46-
# User-specific files
47-
*.suo
48-
*.user
49-
*.sln.docstates
50-
51-
# Build results
52-
[Dd]ebug/
53-
[Rr]elease/
54-
*_i.c
55-
*_p.c
56-
*.ilk
57-
*.meta
58-
*.obj
59-
*.pch
60-
*.pdb
61-
*.pgc
62-
*.pgd
63-
*.rsp
64-
*.sbr
65-
*.tlb
66-
*.tli
67-
*.tlh
68-
*.tmp
69-
*.vspscc
70-
.builds
71-
*.dotCover
72-
73-
## TODO: If you have NuGet Package Restore enabled, uncomment this
74-
#packages/
75-
76-
# Visual C++ cache files
77-
ipch/
78-
*.aps
79-
*.ncb
80-
*.opensdf
81-
*.sdf
82-
83-
# Visual Studio profiler
84-
*.psess
85-
*.vsp
86-
87-
# ReSharper is a .NET coding add-in
88-
_ReSharper*
89-
90-
# Installshield output folder
91-
[Ee]xpress
92-
93-
# DocProject is a documentation generator add-in
94-
DocProject/buildhelp/
95-
DocProject/Help/*.HxT
96-
DocProject/Help/*.HxC
97-
DocProject/Help/*.hhc
98-
DocProject/Help/*.hhk
99-
DocProject/Help/*.hhp
100-
DocProject/Help/Html2
101-
DocProject/Help/html
102-
103-
# Click-Once directory
104-
publish
105-
106-
# Others
107-
[Bb]in
108-
[Oo]bj
109-
sql
110-
TestResults
111-
*.Cache
112-
ClientBin
113-
stylecop.*
114-
~$*
115-
*.dbmdl
116-
Generated_Code #added for RIA/Silverlight projects
117-
118-
# Backup & report files from converting an old project file to a newer
119-
# Visual Studio version. Backup files are not needed, because we have git ;-)
120-
_UpgradeReport_Files/
121-
Backup*/
122-
UpgradeLog*.XML
123-
124-
125-
126-
############
127-
## Windows
128-
############
129-
130-
# Windows image file caches
131-
Thumbs.db
132-
133-
# Folder config file
134-
Desktop.ini
135-
136-
137-
#############
138-
## Python
139-
#############
140-
141-
*.py[co]
142-
143-
# Packages
144-
*.egg
145-
*.egg-info
146-
dist
147-
build
148-
eggs
149-
parts
150-
bin
151-
var
152-
sdist
153-
develop-eggs
154-
.installed.cfg
155-
156-
# Installer logs
157-
pip-log.txt
158-
159-
# Unit test / coverage reports
160-
.coverage
161-
.tox
26+
!**/src/main/**/bin/
27+
!**/src/test/**/bin/
16228

163-
#Translations
164-
*.mo
29+
### NetBeans ###
30+
/nbproject/private/
31+
/nbbuild/
32+
/dist/
33+
/nbdist/
34+
/.nb-gradle/
16535

166-
#Mr Developer
167-
.mr.developer.cfg
36+
### VS Code ###
37+
.vscode/
16838

169-
# Mac crap
170-
.DS_Store
39+
### Mac OS ###
40+
.DS_Store

build.gradle

Lines changed: 0 additions & 20 deletions
This file was deleted.

build.gradle.kts

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
plugins {
2+
java
3+
jacoco
4+
}
5+
6+
group = "uk.co.ryanharrison"
7+
version = "1.0.0"
8+
9+
java {
10+
toolchain {
11+
languageVersion = JavaLanguageVersion.of(25)
12+
}
13+
withSourcesJar()
14+
withJavadocJar()
15+
}
16+
17+
repositories {
18+
mavenCentral()
19+
}
20+
21+
dependencies {
22+
implementation("org.apache.commons:commons-lang3:3.17.0")
23+
24+
testImplementation(platform("org.junit:junit-bom:5.11.4"))
25+
testImplementation("org.junit.jupiter:junit-jupiter")
26+
testImplementation("org.assertj:assertj-core:3.27.2")
27+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
28+
}
29+
30+
tasks.test {
31+
useJUnitPlatform()
32+
finalizedBy(tasks.jacocoTestReport)
33+
}
34+
35+
tasks.jacocoTestReport {
36+
dependsOn(tasks.test)
37+
38+
reports {
39+
xml.required = true
40+
html.required = true
41+
csv.required = false
42+
}
43+
}
44+
45+
tasks.jacocoTestCoverageVerification {
46+
violationRules {
47+
rule {
48+
limit {
49+
minimum = "0.0".toBigDecimal() // Set to 0 initially, increase as tests are added
50+
}
51+
}
52+
}
53+
}

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

gradle/wrapper/gradle-wrapper.jar

6.19 KB
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Sat Feb 23 18:31:16 GMT 2019
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-all.zip

0 commit comments

Comments
 (0)