Skip to content

Commit

Permalink
chore: restore formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Sep 10, 2024
1 parent 2f5e3d7 commit ba5a061
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@
*/
def javaVersion = getProjectProp("java.version");
def javaMajorVersion = Integer.parseInt(javaVersion.indexOf(".") > -1 ? javaVersion.substring(0, javaVersion.indexOf(".")) : javaVersion);
def ecjVersion = javaMajorVersion < 17 ? "3.33.0" : project.properties["eclipse-java-compiler.version"]; def ecjArtifactMeta = artifactFactory.createArtifactWithClassifier("org.eclipse.jdt", "ecj", ecjVersion, "jar", null); def ecjArtifact = artifactResolver.resolve(new org.apache.maven.artifact.resolver.ArtifactResolutionRequest() .setArtifact(ecjArtifactMeta) .setLocalRepository(session.localRepository)
def ecjVersion = javaMajorVersion < 17 ? "3.33.0" : project.properties["eclipse-java-compiler.version"];
def ecjArtifactMeta = artifactFactory.createArtifactWithClassifier("org.eclipse.jdt", "ecj", ecjVersion, "jar", null);
def ecjArtifact = artifactResolver.resolve(new org.apache.maven.artifact.resolver.ArtifactResolutionRequest()
.setArtifact(ecjArtifactMeta)
.setLocalRepository(session.localRepository)
.setRemoteRepositories(project.remoteArtifactRepositories)
).artifacts[0];
setProjectProp("custom.ecjJarPath", ecjArtifact.file.absolutePath);
Expand Down

0 comments on commit ba5a061

Please sign in to comment.