-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from mnlipp/wip/copy-and-adapt
Adapt to Java-21
- Loading branch information
Showing
280 changed files
with
86,534 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
* | ||
* This project uses @Incubating APIs which are subject to change. | ||
*/ | ||
|
||
plugins { | ||
// Apply the common convention plugin for shared build configuration between library and application projects. | ||
id 'mdoclet.java-common-conventions' | ||
|
||
// Apply the application plugin to add support for building a CLI application in Java. | ||
id 'application' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
* | ||
* This project uses @Incubating APIs which are subject to change. | ||
*/ | ||
|
||
plugins { | ||
// Apply the java Plugin to add support for Java. | ||
id 'java' | ||
|
||
// Apply eclipse plugin | ||
id 'eclipse' | ||
} | ||
|
||
repositories { | ||
// Use Maven Central for resolving dependencies. | ||
mavenCentral() | ||
mavenLocal() | ||
} | ||
|
||
dependencies { | ||
constraints { | ||
// Define dependency versions as constraints | ||
// implementation 'org.apache.commons:commons-text:1.9' | ||
} | ||
} | ||
|
||
// Configure sensible layout | ||
sourceSets { | ||
main { | ||
java { | ||
srcDirs = ['src'] | ||
} | ||
resources { | ||
srcDirs = ['resources'] | ||
} | ||
} | ||
|
||
test { | ||
java { | ||
srcDirs = ['test'] | ||
} | ||
resources { | ||
srcDirs = ['test-resources'] | ||
} | ||
} | ||
} | ||
|
||
java { | ||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(21) | ||
} | ||
} | ||
|
||
eclipse { | ||
|
||
project { | ||
file { | ||
// closure executed after .project content is loaded from existing file | ||
// and before gradle build information is merged | ||
beforeMerged { project -> | ||
project.natures.clear() | ||
project.buildCommands.clear() | ||
} | ||
|
||
project.natures += 'org.eclipse.buildship.core.gradleprojectnature' | ||
project.buildCommand 'org.eclipse.buildship.core.gradleprojectbuilder' | ||
|
||
if (plugins.hasPlugin('java')) { | ||
project.buildCommand 'org.eclipse.jdt.core.javabuilder' | ||
// project.natures += 'net.sf.eclipsecs.core.CheckstyleNature' | ||
// project.buildCommand 'net.sf.eclipsecs.core.CheckstyleBuilder' | ||
// project.natures += 'ch.acanda.eclipse.pmd.builder.PMDNature' | ||
// project.buildCommand 'ch.acanda.eclipse.pmd.builder.PMDBuilder' | ||
} | ||
} | ||
} | ||
|
||
classpath { | ||
downloadJavadoc = true | ||
downloadSources = true | ||
} | ||
|
||
jdt { | ||
file { | ||
withProperties { properties -> | ||
def formatterPrefs = new Properties() | ||
rootProject.file("gradle/org.eclipse.jdt.core.formatter.prefs") | ||
.withInputStream { formatterPrefs.load(it) } | ||
properties.putAll(formatterPrefs) | ||
} | ||
} | ||
} | ||
} | ||
|
||
testing { | ||
suites { | ||
// Configure the built-in test suite | ||
test { | ||
// Use JUnit Jupiter test framework | ||
useJUnitJupiter('5.9.1') | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
* | ||
* This project uses @Incubating APIs which are subject to change. | ||
*/ | ||
|
||
plugins { | ||
// Apply the common convention plugin for shared build configuration between library and application projects. | ||
id 'mdoclet.java-common-conventions' | ||
|
||
// Apply the java-library plugin for API and implementation separation. | ||
id 'java-library' | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.