Start working on non-Maven builds.
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 11 Nov 2021 09:09:25 +0000 (10:09 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 11 Nov 2021 09:09:25 +0000 (10:09 +0100)
sdk/build.sh [new file with mode: 0644]
sdk/ecj.args [new file with mode: 0644]
sdk/pom.xml [new file with mode: 0644]

diff --git a/sdk/build.sh b/sdk/build.sh
new file mode 100644 (file)
index 0000000..7757592
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# Works on Fedora 34
+JVM=/usr/lib/jvm/jre-11/bin/java
+ECJ_JAR=/usr/share/java/ecj/ecj.jar
+OSGI_JAR=/usr/share/java/eclipse/osgi.jar
+
+
+SOURCE_PATH=
+for bundle in ../*.*.*/ ; do
+SOURCE_PATH="$SOURCE_PATH $bundle/src[-d $bundle/bin]"
+done
+
+echo ### COMPILATION ###
+time $JVM -jar $ECJ_JAR @ecj.args -time -cp $OSGI_JAR:"$(printf %s: target/sdk-*-a2-target/*/*.jar)" $SOURCE_PATH 
+
+echo ### PACKAGING ###
diff --git a/sdk/ecj.args b/sdk/ecj.args
new file mode 100644 (file)
index 0000000..306fd82
--- /dev/null
@@ -0,0 +1,2 @@
+-11
+-nowarn
\ No newline at end of file
diff --git a/sdk/pom.xml b/sdk/pom.xml
new file mode 100644 (file)
index 0000000..b7646bb
--- /dev/null
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+       <modelVersion>4.0.0</modelVersion>
+       <parent>
+               <groupId>org.argeo.commons</groupId>
+               <artifactId>argeo-commons</artifactId>
+               <version>2.3.1-SNAPSHOT</version>
+               <relativePath>..</relativePath>
+       </parent>
+       <artifactId>sdk</artifactId>
+       <name>Commons SDK</name>
+       <packaging>pom</packaging>
+       <dependencies>
+               <dependency>
+                       <groupId>org.argeo.tp</groupId>
+                       <artifactId>argeo-tp-rap-e4</artifactId>
+                       <version>${version.argeo-tp}</version>
+                       <type>pom</type>
+                       <scope>provided</scope>
+               </dependency>
+       </dependencies>
+       <profiles>
+               <profile>
+                       <id>a2-provided</id>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               <artifactId>maven-assembly-plugin</artifactId>
+                                               <configuration>
+                                                       <descriptorRefs>
+                                                               <descriptorRef>a2-provided</descriptorRef>
+                                                       </descriptorRefs>
+                                               </configuration>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
+       </profiles>
+</project>
\ No newline at end of file