-
Notifications
You must be signed in to change notification settings - Fork 2
Updated dependencies and migrated to th2 gradle plugin #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
cbf610d
Migrated to th2 gradle plugin: `0.0.6`
Nikita-Smirnov-Exactpro b18e657
Updated workflow
Nikita-Smirnov-Exactpro 0cfe6a6
Added main class
Nikita-Smirnov-Exactpro d01ae34
corrected after review
Nikita-Smirnov-Exactpro 2ad6a56
Removed redundant application name from build gradle
Nikita-Smirnov-Exactpro 1169b1b
Migrated to release version codec:5.5.0-dev
Nikita-Smirnov-Exactpro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
15 changes: 6 additions & 9 deletions
15
...ease-java-publish-sonatype-and-docker.yml → .github/workflows/build-dev-release.yml
This file contains hidden or 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: 'Sonatype,Docker' | ||
| runsOn: ubuntu-latest | ||
| gradleVersion: '7' | ||
| docker-username: ${{ github.actor }} | ||
| 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,32 +1,67 @@ | ||
| buildscript { | ||
| repositories { | ||
| gradlePluginPortal() | ||
| maven { | ||
| url = "https://s01.oss.sonatype.org/content/repositories/snapshots/" | ||
| } | ||
| } | ||
| dependencies { | ||
| classpath "com.exactpro.th2:th2-gradle-plugin:0.0.1-dev-5915772757-13a28ae-SNAPSHOT" | ||
| } | ||
| 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" | ||
| } | ||
|
|
||
| apply plugin: "com.exactpro.th2.common-conventions" | ||
| apply plugin: "com.exactpro.th2.docker-conventions" | ||
| group = 'com.exactpro.th2' | ||
| version = release_version | ||
|
|
||
| kotlin { | ||
| jvmToolchain(11) | ||
| } | ||
|
|
||
| apply plugin: 'kotlin-kapt' | ||
| repositories { | ||
| mavenCentral() | ||
| maven { | ||
| name 'Sonatype_snapshots' | ||
| url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' | ||
| } | ||
| maven { | ||
| name 'Sonatype_releases' | ||
| url 'https://s01.oss.sonatype.org/content/repositories/releases/' | ||
| } | ||
| mavenLocal() | ||
|
|
||
| configurations.configureEach { | ||
| resolutionStrategy.cacheChangingModulesFor 0, 'seconds' | ||
| resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds' | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| api platform("com.exactpro.th2:bom:4.5.0") | ||
| implementation "com.exactpro.th2:common:5.7.2-dev" | ||
| implementation "com.exactpro.th2:common-utils:2.2.2-dev" | ||
| implementation "com.exactpro.th2:codec:5.4.1-dev" | ||
| implementation "com.exactpro.th2:common:5.10.1-dev" | ||
| implementation "com.exactpro.th2:common-utils:2.2.3-dev" | ||
| implementation "com.exactpro.th2:codec:5.5.0-dev" | ||
|
|
||
| implementation "org.apache.commons:commons-lang3" | ||
| implementation "com.fasterxml.jackson.core:jackson-databind" | ||
|
|
||
| implementation "net.sourceforge.javacsv:javacsv:2.0" | ||
|
|
||
| implementation "io.github.microutils:kotlin-logging:3.0.5" | ||
|
|
||
| compileOnly "com.google.auto.service:auto-service-annotations:1.1.1" | ||
| annotationProcessor "com.google.auto.service:auto-service:1.1.1" | ||
| kapt "com.google.auto.service:auto-service:1.1.1" | ||
|
|
||
| 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' | ||
| } | ||
|
|
||
| application { | ||
| mainClass.set("com.exactpro.th2.codec.MainKt") | ||
| } | ||
|
|
||
| test { | ||
| useJUnitPlatform() | ||
| } | ||
|
|
||
| dependencyCheck { | ||
| suppressionFile='supressions.xml' | ||
| } | ||
This file contains hidden or 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,2 +1 @@ | ||
| release_version=5.2.1 | ||
| app_main_class=com.exactpro.th2.codec.MainKt | ||
| release_version=5.3.0 |
This file contains hidden or 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 hidden or 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> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.