Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/image-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,46 @@ concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true

env:
tag: ${{ github.ref == 'refs/heads/main' && 'latest' || github.ref_name }}
jobs:
jar-artifact:
name: Publish package to GitHub Packages
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: temurin
- name: set-version
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
run: |
echo "TAG=${{ env.tag }}" >> $GITHUB_ENV
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
mvn org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=${VERSION}
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: create new snapshot version on release
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
run: |
echo "TAG=${{ env.tag }}" >> $GITHUB_ENV
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
mvn org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=${VERSION}-SNAPSHOT
- name: create pull request with changes
uses: peter-evans/create-pull-request@v7
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
with:
commit-message: Bumping to new snapshot for release ${{env.tag}}
title: Bumping to new snapshot for release ${{env.tag}}
branch: "${{env.tag}}-snapshot"

image-build:
uses: konveyor/release-tools/.github/workflows/build-push-images.yaml@main
with:
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ RUN ./gradlew build -x test && rm -rf /root/.gradle
RUN mkdir /output && cp ./build/libs/fernflower.jar /output

FROM registry.access.redhat.com/ubi9/ubi AS addon-build
RUN dnf install -y maven-openjdk17 && dnf clean all && rm -rf /var/cache/dnf
RUN curl -fsSL -o /tmp/apache-maven.tar.gz https://dlcdn.apache.org/maven/maven-3/3.9.5/binaries/apache-maven-3.9.5-bin.tar.gz && \
tar -xzf /tmp/apache-maven.tar.gz -C /usr/local/ && \
ln -s /usr/local/apache-maven-3.9.5/bin/mvn /usr/bin/mvn && \
rm /tmp/apache-maven.tar.gz
RUN dnf install -y java-17-openjdk-devel && dnf clean all && rm -rf /var/cache/dnf
WORKDIR /app
COPY ./ /app/
RUN export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
Expand Down
Binary file added gradle/.gradle/8.8/checksums/checksums.lock
Binary file not shown.
Empty file.
Binary file added gradle/.gradle/8.8/fileChanges/last-build.bin
Binary file not shown.
Binary file added gradle/.gradle/8.8/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added gradle/.gradle/8.8/fileHashes/fileHashes.lock
Binary file not shown.
Empty file.
Binary file not shown.
2 changes: 2 additions & 0 deletions gradle/.gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Tue Mar 04 12:44:54 EST 2025
gradle.version=8.8
Empty file.
21 changes: 15 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,20 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<tycho.version>3.0.1</tycho.version>
<tycho.extras.version>3.0.1</tycho.extras.version>
<tycho.version>4.0.9</tycho.version>
<tycho.extras.version>${tycho.version}</tycho.extras.version>
<tycho.scmUrl>scm:git:https://github.com/konveyor/java-analyzer-bundle.git</tycho.scmUrl>
<tycho.generateSourceReferences>true</tycho.generateSourceReferences>
<tycho.test.platformArgs />
<tycho.test.jvmArgs>-Xmx512m ${tycho.test.platformArgs}</tycho.test.jvmArgs>
<tycho.test.jvmArgs>-Xmx1G -DDetectVMInstallationsJob.disabled=true ${tycho.test.platformArgs}</tycho.test.jvmArgs>

<!-- Code coverage -->
<jacoco.version>0.7.9</jacoco.version>
<coverage.filter>org.eclipse.jdt.ls.*</coverage.filter>
<jacoco.version>0.8.8</jacoco.version>
<coverage.filter>org.eclipse.lsp4mp.jdt.*</coverage.filter>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<jacoco.destFile>${project.build.directory}/jacoco.exec</jacoco.destFile>
<sonar.jacoco.reportPath>${jacoco.destFile}</sonar.jacoco.reportPath>
<surefire.timeout>600</surefire.timeout>
</properties>
<build>
<plugins>
Expand Down Expand Up @@ -164,8 +166,15 @@
</profiles>
<modules>
<module>java-analyzer-bundle.core</module>
<module>java-analyzer-bundle.site</module>
<!--<module>java-analyzer-bundle.site</module>-->
<module>java-analyzer-bundle.test</module>
<module>java-analyzer-bundle.tp</module>
</modules>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/shawn-hurley/java-analyzer-bundle</url>
</repository>
</distributionManagement>
</project>
Loading