Skip to content

Commit

Permalink
Maven setup
Browse files Browse the repository at this point in the history
Currently not building anything just setting up the build and Github
action
Using the target platform during the Maven build and build the css
plug-in

For de-jcup#371
  • Loading branch information
vogella committed Sep 17, 2021
1 parent 3534f34 commit dc1b35f
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Maven
on:
push:
branches-ignore:
- documentation

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Build with Gradle
run: ./mvn clean verify
8 changes: 8 additions & 0 deletions .mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<extensions>
<extension>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-pomless</artifactId>
<version>2.4.0</version>
</extension>
</extensions>
106 changes: 106 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>eclipse.asciidoctor.editor</groupId>
<artifactId>releng</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<pluginRepositories>
<pluginRepository>
<id>tycho-snapshots</id>
<url>https://repo.eclipse.org/content/repositories/tycho-snapshots/</url>
</pluginRepository>
</pluginRepositories>

<properties>
<tycho.version>2.5.0-SNAPSHOT</tycho.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>


<build>

<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho.version}</version>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho.version}</version>
<extensions>true</extensions>
</plugin>
<!--Enable the replacement of the SNAPSHOT version in the final product configuration-->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<phase>package</phase>
<id>package-feature</id>
<configuration>
<finalName>${project.artifactId}_${unqualifiedVersion}.${buildQualifier}</finalName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<target>
<file>../asciidoctor-editor-target/asciidoctor-editor.target</file>
</target>
<resolveWithExecutionEnvironmentConstraints>false</resolveWithExecutionEnvironmentConstraints>

<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>


<modules>
<module>asciidoctor-editor-css</module>

<!--
<module>asciidoctor-editor-doc</module>
<module>asciidoctor-editor-plugin</module>
<module>asciidoctor-converter-plugin</module>
<module>asciidoctor-converter-feature</module>
<module>asciidoctor-editor-feature</module>
<module>asciidoctor-editor-libs</module>
<module>asciidoctor-editor-other</module>
# wxrwxr-x 2 vogella vogella 4096 Sep 17 10:34 asciidoctor-editor-gradle-dep
drwxrwxr-x 3 vogella vogella 4096 Sep 17 10:34 asciidoctor-editor-updatesite
drwxrwxr-x 3 vogella vogella 4096 Sep 17 10:34 asciidoctor-testproject-imagedirset
drwxrwxr-x 3 vogella vogella 4096 Sep 17 10:34 asciidoctor-testproject-noimagedirset
-->

</modules>
</project>

0 comments on commit dc1b35f

Please sign in to comment.