diff options
author | 2022-09-25 20:14:42 +0200 | |
---|---|---|
committer | 2022-10-03 20:06:52 +0200 | |
commit | 89d6f019f764532d85d1f7499355e1cd3075f0b5 (patch) | |
tree | bc007da572948f9de1df5bc7497cda6f6a1fa752 /buildSrc/src/main/groovy/refinery-java-conventions.gradle | |
parent | feat: data structure for assertion merging (diff) | |
download | refinery-89d6f019f764532d85d1f7499355e1cd3075f0b5.tar.gz refinery-89d6f019f764532d85d1f7499355e1cd3075f0b5.tar.zst refinery-89d6f019f764532d85d1f7499355e1cd3075f0b5.zip |
chore: fix some warnings
Diffstat (limited to 'buildSrc/src/main/groovy/refinery-java-conventions.gradle')
-rw-r--r-- | buildSrc/src/main/groovy/refinery-java-conventions.gradle | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/buildSrc/src/main/groovy/refinery-java-conventions.gradle b/buildSrc/src/main/groovy/refinery-java-conventions.gradle index bbdaa86c..b95153ce 100644 --- a/buildSrc/src/main/groovy/refinery-java-conventions.gradle +++ b/buildSrc/src/main/groovy/refinery-java-conventions.gradle | |||
@@ -20,8 +20,9 @@ dependencies { | |||
20 | testImplementation libs.mockito.junit | 20 | testImplementation libs.mockito.junit |
21 | } | 21 | } |
22 | 22 | ||
23 | sourceCompatibility = '17' | 23 | java.toolchain { |
24 | targetCompatibility = '17' | 24 | languageVersion = JavaLanguageVersion.of(17) |
25 | } | ||
25 | 26 | ||
26 | def jacocoTestReport = tasks.named('jacocoTestReport') | 27 | def jacocoTestReport = tasks.named('jacocoTestReport') |
27 | jacocoTestReport.configure { | 28 | jacocoTestReport.configure { |
@@ -46,8 +47,8 @@ tasks.register('slowTest', Test) { | |||
46 | tasks.named('jar') { | 47 | tasks.named('jar') { |
47 | manifest { | 48 | manifest { |
48 | attributes( | 49 | attributes( |
49 | 'Bundle-SymbolicName': "${project.group}.${project.name}", | 50 | 'Bundle-SymbolicName': "${project.group}.${project.name}", |
50 | 'Bundle-Version': project.version | 51 | 'Bundle-Version': project.version |
51 | ) | 52 | ) |
52 | } | 53 | } |
53 | } | 54 | } |
@@ -70,7 +71,7 @@ eclipse { | |||
70 | entry.entryAttributes['ignore_optional_problems'] = true | 71 | entry.entryAttributes['ignore_optional_problems'] = true |
71 | } | 72 | } |
72 | // If a project has a main dependency on a project and an test dependency on the testFixtures of a project, | 73 | // If a project has a main dependency on a project and an test dependency on the testFixtures of a project, |
73 | // it will be errorneously added as a test-only dependency to Eclipse. | 74 | // it will be erroneously added as a test-only dependency to Eclipse. |
74 | // As a workaround, we add all project dependencies as main dependencies | 75 | // As a workaround, we add all project dependencies as main dependencies |
75 | // (we do not deliberately use test-only project dependencies). | 76 | // (we do not deliberately use test-only project dependencies). |
76 | if (entry in org.gradle.plugins.ide.eclipse.model.ProjectDependency) { | 77 | if (entry in org.gradle.plugins.ide.eclipse.model.ProjectDependency) { |
@@ -80,7 +81,7 @@ eclipse { | |||
80 | } | 81 | } |
81 | 82 | ||
82 | jdt.file.withProperties { properties -> | 83 | jdt.file.withProperties { properties -> |
83 | // Allow @SupperessWarnings to suppress SonarLint warnings | 84 | // Allow @SuppressWarnings to suppress SonarLint warnings |
84 | properties['org.eclipse.jdt.core.compiler.problem.unhandledWarningToken'] = 'ignore' | 85 | properties['org.eclipse.jdt.core.compiler.problem.unhandledWarningToken'] = 'ignore' |
85 | } | 86 | } |
86 | } | 87 | } |