From 237811252b3f272fcc0dfca2d403b876a404ec64 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Sat, 6 Jan 2024 14:39:15 +0100 Subject: [PATCH] [Build] Merge binaries-parent into binaries directory Part of https://github.com/eclipse-platform/eclipse.platform.swt/issues/513 --- Jenkinsfile | 2 +- binaries/binaries-parent/pom.xml | 164 ------------------ binaries/{binaries-parent => }/build.xml | 4 +- .../build.properties | 2 - .../build.properties | 2 - .../build.properties | 2 - .../build.properties | 2 - .../build.properties | 2 - .../build.properties | 2 - .../build.properties | 2 - binaries/pom.xml | 145 +++++++++++++++- bundles/org.eclipse.swt/buildInternal.xml | 4 +- bundles/org.eclipse.swt/buildSWT.xml | 2 +- 13 files changed, 150 insertions(+), 185 deletions(-) delete mode 100644 binaries/binaries-parent/pom.xml rename binaries/{binaries-parent => }/build.xml (71%) diff --git a/Jenkinsfile b/Jenkinsfile index 4bfc844dfd9..befd0fb69d6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -133,7 +133,7 @@ pipeline { withAnt(installation: 'apache-ant-latest', jdk: 'openjdk-jdk11-latest') { // nashorn javascript-engine required in ant-scripts sh ''' pfSpec=(${PLATFORM//"."/ }) - ant -f binaries-parent/build.xml copy_library_src_and_create_zip -Dws=${pfSpec[0]} -Dos=${pfSpec[1]} -Darch=${pfSpec[2]} + ant -f build.xml copy_library_src_and_create_zip -Dws=${pfSpec[0]} -Dos=${pfSpec[1]} -Darch=${pfSpec[2]} ''' } dir("org.eclipse.swt.${PLATFORM}/tmpdir") { diff --git a/binaries/binaries-parent/pom.xml b/binaries/binaries-parent/pom.xml deleted file mode 100644 index 384fcc1a115..00000000000 --- a/binaries/binaries-parent/pom.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - 4.0.0 - - eclipse.platform.swt.binaries - eclipse.platform.swt.binaries - 4.31.0-SNAPSHOT - - - binaries-parent - pom - - - - v20240108-1800 - ${buildId} - - - - - - maven-clean-plugin - - - - src - - **/* - - false - - - - - - org.eclipse.tycho - tycho-compiler-plugin - - 17 - - - - org.eclipse.tycho - tycho-packaging-plugin - - ${forceContextQualifier} - - - - org.eclipse.tycho - target-platform-configuration - - JavaSE-17 - - - - true - - - - - ${os} - ${ws} - ${arch} - - - - - - maven-antrun-plugin - - - normal - initialize - - run - - - - - - - - - - natives - process-resources - - run - - - - - - - - - - - - - - - - swtdownload - package - - run - - - - - - - - - - - - org.mozilla - rhino-runtime - 1.7.14 - - - org.apache.ant - ant - 1.10.14 - - - org.apache.ant - ant-apache-bsf - 1.10.14 - - - ant-contrib - ant-contrib - 1.0b3 - - - ant - ant - - - - - - - - diff --git a/binaries/binaries-parent/build.xml b/binaries/build.xml similarity index 71% rename from binaries/binaries-parent/build.xml rename to binaries/build.xml index 3485a3cd8b0..6e6f4588cf8 100644 --- a/binaries/binaries-parent/build.xml +++ b/binaries/build.xml @@ -6,6 +6,6 @@ - - + + \ No newline at end of file diff --git a/binaries/org.eclipse.swt.cocoa.macosx.aarch64/build.properties b/binaries/org.eclipse.swt.cocoa.macosx.aarch64/build.properties index deeffc9861e..933f1d484b8 100644 --- a/binaries/org.eclipse.swt.cocoa.macosx.aarch64/build.properties +++ b/binaries/org.eclipse.swt.cocoa.macosx.aarch64/build.properties @@ -16,8 +16,6 @@ bin.excludes = library/ source.. = src/ src.includes = about.html,about_files/ -tycho.pomless.parent=../binaries-parent -pom.model.groupId=org.eclipse.swt pom.model.property.os=macosx pom.model.property.ws=cocoa pom.model.property.arch=aarch64 diff --git a/binaries/org.eclipse.swt.cocoa.macosx.x86_64/build.properties b/binaries/org.eclipse.swt.cocoa.macosx.x86_64/build.properties index 9c5ef7a84e7..51280a38b24 100644 --- a/binaries/org.eclipse.swt.cocoa.macosx.x86_64/build.properties +++ b/binaries/org.eclipse.swt.cocoa.macosx.x86_64/build.properties @@ -16,8 +16,6 @@ bin.excludes = library/ source.. = src/ src.includes = about.html,about_files/ -tycho.pomless.parent=../binaries-parent -pom.model.groupId=org.eclipse.swt pom.model.property.os=macosx pom.model.property.ws=cocoa pom.model.property.arch=x86_64 diff --git a/binaries/org.eclipse.swt.gtk.linux.aarch64/build.properties b/binaries/org.eclipse.swt.gtk.linux.aarch64/build.properties index c93202353e5..65c1768feb7 100644 --- a/binaries/org.eclipse.swt.gtk.linux.aarch64/build.properties +++ b/binaries/org.eclipse.swt.gtk.linux.aarch64/build.properties @@ -15,8 +15,6 @@ bin.excludes = library/ source.. = src/ src.includes = about.html,about_files/ -tycho.pomless.parent=../binaries-parent -pom.model.groupId=org.eclipse.swt pom.model.property.os=linux pom.model.property.ws=gtk pom.model.property.arch=aarch64 diff --git a/binaries/org.eclipse.swt.gtk.linux.loongarch64/build.properties b/binaries/org.eclipse.swt.gtk.linux.loongarch64/build.properties index 601c2ee21aa..0286d720aa6 100644 --- a/binaries/org.eclipse.swt.gtk.linux.loongarch64/build.properties +++ b/binaries/org.eclipse.swt.gtk.linux.loongarch64/build.properties @@ -15,8 +15,6 @@ bin.excludes = library/ source.. = src/ src.includes = about.html,about_files/ -tycho.pomless.parent=../binaries-parent -pom.model.groupId=org.eclipse.swt pom.model.property.os=linux pom.model.property.ws=gtk pom.model.property.arch=loongarch64 diff --git a/binaries/org.eclipse.swt.gtk.linux.ppc64le/build.properties b/binaries/org.eclipse.swt.gtk.linux.ppc64le/build.properties index 840bc03d2b4..30cefaf6960 100644 --- a/binaries/org.eclipse.swt.gtk.linux.ppc64le/build.properties +++ b/binaries/org.eclipse.swt.gtk.linux.ppc64le/build.properties @@ -15,8 +15,6 @@ bin.excludes = library/ source.. = src/ src.includes = about.html,about_files/ -tycho.pomless.parent=../binaries-parent -pom.model.groupId=org.eclipse.swt pom.model.property.os=linux pom.model.property.ws=gtk pom.model.property.arch=ppc64le diff --git a/binaries/org.eclipse.swt.gtk.linux.x86_64/build.properties b/binaries/org.eclipse.swt.gtk.linux.x86_64/build.properties index 5c07bf10bef..c145e4881b8 100644 --- a/binaries/org.eclipse.swt.gtk.linux.x86_64/build.properties +++ b/binaries/org.eclipse.swt.gtk.linux.x86_64/build.properties @@ -16,8 +16,6 @@ bin.excludes = library/ source.. = src/ src.includes = about.html,about_files/ -tycho.pomless.parent=../binaries-parent -pom.model.groupId=org.eclipse.swt pom.model.property.os=linux pom.model.property.ws=gtk pom.model.property.arch=x86_64 diff --git a/binaries/org.eclipse.swt.win32.win32.x86_64/build.properties b/binaries/org.eclipse.swt.win32.win32.x86_64/build.properties index 784476625b2..dc7445c23e8 100644 --- a/binaries/org.eclipse.swt.win32.win32.x86_64/build.properties +++ b/binaries/org.eclipse.swt.win32.win32.x86_64/build.properties @@ -16,8 +16,6 @@ bin.excludes = library/ source.. = src/ src.includes = about.html,about_files/ -tycho.pomless.parent=../binaries-parent -pom.model.groupId=org.eclipse.swt pom.model.property.os=win32 pom.model.property.ws=win32 pom.model.property.arch=x86_64 diff --git a/binaries/pom.xml b/binaries/pom.xml index d162cf75d7a..ccd2118cb5d 100644 --- a/binaries/pom.xml +++ b/binaries/pom.xml @@ -22,10 +22,20 @@ 4.31.0-SNAPSHOT - eclipse.platform.swt.binaries + org.eclipse.swt eclipse.platform.swt.binaries pom + + + v20240102-1528 + ${buildId} + 17 + + org.eclipse.swt.cocoa.macosx.x86_64 org.eclipse.swt.cocoa.macosx.aarch64 @@ -35,4 +45,137 @@ org.eclipse.swt.win32.win32.x86_64 + + + build-natitve-fragment + + + META-INF/MANIFEST.MF + + + + + + maven-clean-plugin + + + + src + + **/* + + false + + + + + + org.eclipse.tycho + target-platform-configuration + + JavaSE-${maven.compiler.release} + + + + true + + + + + ${os} + ${ws} + ${arch} + + + + + + org.eclipse.tycho + tycho-packaging-plugin + + ${forceContextQualifier} + + + + maven-antrun-plugin + + + normal + initialize + + run + + + + + + + + + + natives + process-resources + + run + + + + + + + + + + + + + + + + swtdownload + package + + run + + + + + + + + + + + + org.mozilla + rhino-runtime + 1.7.14 + + + org.apache.ant + ant + 1.10.14 + + + org.apache.ant + ant-apache-bsf + 1.10.14 + + + ant-contrib + ant-contrib + 1.0b3 + + + ant + ant + + + + + + + + + diff --git a/bundles/org.eclipse.swt/buildInternal.xml b/bundles/org.eclipse.swt/buildInternal.xml index 4c04d92df40..6aa997424e1 100644 --- a/bundles/org.eclipse.swt/buildInternal.xml +++ b/bundles/org.eclipse.swt/buildInternal.xml @@ -21,7 +21,7 @@ - + @@ -31,7 +31,7 @@