This is an automated email from the ASF dual-hosted git repository. rec pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/uima-build-jenkins-shared-library.git
The following commit(s) were added to refs/heads/main by this push: new b1f70ae Issue #5: Windows builds do not seem to work b1f70ae is described below commit b1f70aed4b57cc943f3e2a34ebe5cba545f14f7d Author: Richard Eckart de Castilho <r...@apache.org> AuthorDate: Mon Sep 18 19:43:49 2023 +0200 Issue #5: Windows builds do not seem to work - Reactivate Windows build - Configure enforcer plugin so m2e properly picks up the compiler level --- pom.xml | 30 +++++++++++++++++++++++++++--- vars/defaultPipeline.groovy | 4 +--- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 3dc06e5..6fb499b 100644 --- a/pom.xml +++ b/pom.xml @@ -32,15 +32,39 @@ <version>23</version> <relativePath /> </parent> - + <name>Apache UIMA - Jenkins Shared Library</name> - + <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <maven.compiler.target>1.8</maven.compiler.target> + <maven.compiler.source>${maven.compiler.target}</maven.compiler.source> </properties> - + <build> <sourceDirectory>${project.basedir}/src</sourceDirectory> <testSourceDirectory>${project.basedir}/test</testSourceDirectory> + + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + <executions> + <execution> + <id>enforce-maven</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <requireJavaVersion> + <version>[${maven.compiler.target},)</version> + </requireJavaVersion> + </rules> + </configuration> + </execution> + </executions> + </plugin> + </plugins> </build> </project> \ No newline at end of file diff --git a/vars/defaultPipeline.groovy b/vars/defaultPipeline.groovy index 0c5255a..a423b55 100644 --- a/vars/defaultPipeline.groovy +++ b/vars/defaultPipeline.groovy @@ -63,9 +63,7 @@ def call(body) { axes { axis { name 'PLATFORM' -// https://github.com/apache/uima-build-jenkins-shared-library/issues/5 -// values 'ubuntu', 'Windows' - values 'ubuntu' + values 'ubuntu', 'Windows' } }