-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated to th2 gradle plugin:
0.0.6
(#8)
* Migrated to release version codec:5.5.0-dev
- Loading branch information
1 parent
8654386
commit c0369ed
Showing
10 changed files
with
124 additions
and
71 deletions.
There are no files selected for viewing
17 changes: 7 additions & 10 deletions
17
...ease-java-publish-sonatype-and-docker.yml → .github/workflows/build-dev-release.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,19 @@ | ||
name: Build and release Java distributions to sonatype. | ||
name: Build and publish dev release Docker image to Github Container Registry ghcr.io and publish dev release jar to sonatype | ||
|
||
on: | ||
push: | ||
tags: | ||
- \d+.\d+.\d+-dev | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
uses: th2-net/.github/.github/workflows/compound-java.yml@main | ||
with: | ||
build-target: 'Docker' | ||
runsOn: ubuntu-latest | ||
gradleVersion: '7' | ||
docker-username: ${{ github.actor }} | ||
build-target: 'Sonatype,Docker' | ||
devRelease: true | ||
createTag: true | ||
docker-username: ${{ github.actor }} | ||
secrets: | ||
docker-password: ${{ secrets.GITHUB_TOKEN }} | ||
sonatypeUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | ||
sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | ||
sonatypeSigningKey: ${{ secrets.SONATYPE_GPG_ARMORED_KEY }} | ||
sonatypeSigningPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }} | ||
docker-password: ${{ secrets.GITHUB_TOKEN }} | ||
nvd-api-key: ${{ secrets.NVD_APIKEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Build and publish release Docker image to Github Container Registry ghcr.io and publish release jar to sonatype | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
uses: th2-net/.github/.github/workflows/compound-java.yml@main | ||
with: | ||
build-target: 'Sonatype,Docker' | ||
devRelease: false | ||
createTag: true | ||
docker-username: ${{ github.actor }} | ||
secrets: | ||
docker-password: ${{ secrets.GITHUB_TOKEN }} | ||
sonatypeUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | ||
sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | ||
sonatypeSigningKey: ${{ secrets.SONATYPE_GPG_ARMORED_KEY }} | ||
sonatypeSigningPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }} | ||
nvd-api-key: ${{ secrets.NVD_APIKEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Build and publish Docker image to Github Container Registry ghcr.io and publish snapshot jar to sonatype | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
- version-* | ||
- dependabot** | ||
paths-ignore: | ||
- README.md | ||
|
||
jobs: | ||
build-job: | ||
uses: th2-net/.github/.github/workflows/compound-java-dev.yml@main | ||
with: | ||
build-target: 'Sonatype,Docker' | ||
docker-username: ${{ github.actor }} | ||
secrets: | ||
docker-password: ${{ secrets.GITHUB_TOKEN }} | ||
sonatypeUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | ||
sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | ||
sonatypeSigningKey: ${{ secrets.SONATYPE_GPG_ARMORED_KEY }} | ||
sonatypeSigningPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }} | ||
nvd-api-key: ${{ secrets.NVD_APIKEY }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,62 @@ | ||
buildscript { | ||
repositories { | ||
gradlePluginPortal() | ||
maven { | ||
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/" | ||
} | ||
plugins { | ||
id "org.jetbrains.kotlin.jvm" version "1.8.22" | ||
id "org.jetbrains.kotlin.kapt" version "1.8.22" | ||
id("java-library") | ||
id("maven-publish") | ||
|
||
id "com.exactpro.th2.gradle.publish" version "0.0.6" | ||
id "com.exactpro.th2.gradle.component" version "0.0.6" | ||
} | ||
|
||
group = 'com.exactpro.th2' | ||
version = release_version | ||
|
||
kotlin { | ||
jvmToolchain(11) | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { | ||
name 'Sonatype_snapshots' | ||
url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' | ||
} | ||
dependencies { | ||
classpath "com.exactpro.th2:th2-gradle-plugin:0.0.1-dev-5915968839-41381e5-SNAPSHOT" | ||
maven { | ||
name 'Sonatype_releases' | ||
url 'https://s01.oss.sonatype.org/content/repositories/releases/' | ||
} | ||
mavenLocal() | ||
|
||
configurations.configureEach { | ||
resolutionStrategy.cacheChangingModulesFor 0, 'seconds' | ||
resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds' | ||
} | ||
} | ||
|
||
apply plugin: "com.exactpro.th2.common-conventions" | ||
apply plugin: "com.exactpro.th2.docker-conventions" | ||
dependencies { | ||
implementation "com.exactpro.th2:common:5.10.1-dev" | ||
implementation "com.exactpro.th2:codec:5.5.0-dev" | ||
|
||
implementation "com.fasterxml.jackson.core:jackson-databind" | ||
implementation "io.github.microutils:kotlin-logging:3.0.5" | ||
|
||
apply plugin: 'kotlin-kapt' | ||
compileOnly "com.google.auto.service:auto-service:1.1.1" | ||
kapt "com.google.auto.service:auto-service:1.1.1" | ||
|
||
dependencies { | ||
api platform("com.exactpro.th2:bom:4.5.0") | ||
testImplementation "org.jetbrains.kotlin:kotlin-test-junit" | ||
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2' | ||
testImplementation 'org.mockito.kotlin:mockito-kotlin:5.3.1' | ||
testImplementation 'io.strikt:strikt-core:0.34.1' | ||
} | ||
|
||
implementation "com.exactpro.th2:common:5.7.2-dev" | ||
implementation "com.exactpro.th2:codec:5.4.1-dev" | ||
application { | ||
mainClass.set("com.exactpro.th2.codec.MainKt") | ||
} | ||
|
||
implementation "com.fasterxml.jackson.core:jackson-databind" | ||
test { | ||
useJUnitPlatform() | ||
} | ||
|
||
compileOnly "com.google.auto.service:auto-service:1.1.0" | ||
kapt "com.google.auto.service:auto-service:1.1.0" | ||
dependencyCheck { | ||
suppressionFile='supressions.xml' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
kotlin.code.style=official | ||
release_version=0.3.0 | ||
app_main_class=com.exactpro.th2.codec.MainKt | ||
release_version=0.4.0 | ||
description='th2 codec json dictionaryless' | ||
vcs_url=https://github.com/th2-net/th2-codec-json-dictionaryless |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- FIXME: find out approach to solve problem when any artifact with grpc word in name is marked as cpe:/a:grpc:grpc --> | ||
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd"> | ||
<suppress base="true"> | ||
<notes><![CDATA[FP per issue https://github.com/jeremylong/DependencyCheck/issues/2995]]> | ||
</notes> | ||
<packageUrl regex="true">^pkg:maven/com\.exactpro\.th2/grpc-.*@.*$</packageUrl> | ||
<cpe>cpe:/a:grpc:grpc</cpe> | ||
</suppress> | ||
</suppressions> |