Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: stop using local Eclipse as a part of dependency
This change makes it possible to build Eclipse plugins without local Eclipse IDE. It is also possible to use metadata of artifacts (pom.xml) to maintain license, vulnerability, and version of dependencies. close #1868
- Loading branch information
1 parent
2b7b633
commit 4c89533
Showing
10 changed files
with
120 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
gradlePluginPortal() | ||
} | ||
dependencies { | ||
implementation("com.diffplug.gradle:goomph:3.34.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,46 @@ | ||
plugins { | ||
id ("com.diffplug.eclipse.mavencentral") | ||
} | ||
|
||
val pdeTool by configurations.creating { | ||
setTransitive(false) | ||
} | ||
|
||
eclipseMavenCentral { | ||
release("4.6.3") { | ||
compileOnly("org.eclipse.ant.core") | ||
compileOnly("org.eclipse.core.resources") | ||
compileOnly("org.eclipse.core.runtime") | ||
compileOnly("org.eclipse.jdt.core") | ||
compileOnly("org.eclipse.jdt.ui") | ||
compileOnly("org.eclipse.jface") | ||
compileOnly("org.eclipse.pde") | ||
compileOnly("org.eclipse.ui.workbench") | ||
testImplementation("org.eclipse.core.runtime") | ||
|
||
dep("pdeTool", "org.eclipse.pde.build") | ||
|
||
// TODO these packages are not listed in the manifest | ||
compileOnly("org.eclipse.pde.ui") | ||
compileOnly("org.eclipse.swt") | ||
|
||
// necessary to build with the org.eclipse.swt module | ||
useNativesForRunningPlatform() | ||
|
||
constrainTransitivesToThisRelease() | ||
} | ||
} | ||
|
||
/** | ||
* Unzip "org.eclipse.pde.build" package into the outputDir. | ||
*/ | ||
val unzipPdeTool = tasks.register<Copy>("unzipPdeTool") { | ||
from(zipTree(pdeTool.singleFile)) | ||
into("$buildDir/pdeTool") | ||
} | ||
|
||
dependencies { | ||
compileOnly(files("$buildDir/pdeTool/pdebuild.jar"){ | ||
builtBy(unzipPdeTool) | ||
}) | ||
} |
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