forked from quickfix-j/quickfixj
-
Notifications
You must be signed in to change notification settings - Fork 1
[RM] Support #86256. Migrated CI to GitHub workflow #1
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
Open
GiorgioMegrelli
wants to merge
3
commits into
exactpro:master
Choose a base branch
from
GiorgioMegrelli:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
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,79 @@ | ||
| name: Build and Publish Release Version | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Set up JDK 11 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: 11 | ||
| distribution: liberica | ||
|
|
||
| - name: Setup Gradle | ||
| uses: gradle/actions/setup-gradle@v3 | ||
| with: | ||
| gradle-version: wrapper | ||
|
|
||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Build project and run tests | ||
| run: ./gradlew clean build | ||
|
|
||
| - name: Store test results | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: reports | ||
| path: | | ||
| **/build/reports/ | ||
| **/build/test-results/ | ||
|
|
||
| - name: Upload archives | ||
| env: | ||
| OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
| OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
| SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | ||
| SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }} | ||
| SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | ||
| run: | | ||
| ./gradlew publish \ | ||
| -Psigning.keyId=$SIGNING_KEY_ID \ | ||
| -Psigning.secretKey=$SIGNING_SECRET_KEY \ | ||
| -Psigning.password=$SIGNING_PASSWORD \ | ||
| -PossrhUsername=$OSSRH_USERNAME \ | ||
| -PossrhPassword=$OSSRH_PASSWORD | ||
|
|
||
| - name: Read version of the project | ||
| id: read_project_version | ||
| run: | | ||
| VERSION=$(./gradlew properties | grep -w "version" | cut -d ':' -f 2 | xargs) | ||
| echo "Version found: ${VERSION}" | ||
| echo "project_version=${VERSION}" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Create Tag | ||
| uses: actions/github-script@v5 | ||
| with: | ||
| script: | | ||
| github.rest.git.createRef({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| ref: "refs/tags/v${{ steps.read_project_version.outputs.project_version }}", | ||
| sha: context.sha | ||
| }) | ||
|
|
||
| - name: Create Github Release | ||
| uses: actions/create-release@v1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| tag_name: "v${{ steps.read_project_version.outputs.project_version }}" | ||
| release_name: "Release v${{ steps.read_project_version.outputs.project_version }}" | ||
| body: "Release of version ${{ steps.read_project_version.outputs.project_version }}" | ||
| draft: false | ||
| prerelease: false | ||
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,5 +1,5 @@ | ||||||||||||||
| /****************************************************************************** | ||||||||||||||
| * Copyright 2009-2018 Exactpro (Exactpro Systems Limited) | ||||||||||||||
| * Copyright 2009-2024 Exactpro (Exactpro Systems Limited) | ||||||||||||||
| * | ||||||||||||||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||||||||||||||
| * you may not use this file except in compliance with the License. | ||||||||||||||
|
|
@@ -14,6 +14,10 @@ | |||||||||||||
| * limitations under the License. | ||||||||||||||
| ******************************************************************************/ | ||||||||||||||
|
|
||||||||||||||
| plugins { | ||||||||||||||
| id 'jacoco' | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| allprojects { | ||||||||||||||
| ext { | ||||||||||||||
| sharedDir = file("${project.rootDir}/shared") | ||||||||||||||
|
|
@@ -22,8 +26,8 @@ allprojects { | |||||||||||||
| genDir = file("${srcDir}/gen") | ||||||||||||||
| genJavaDir = file("${genDir}/java") | ||||||||||||||
|
|
||||||||||||||
| incremental_build = project.hasProperty('i') ? true : false | ||||||||||||||
| sonatype_publish = project.hasProperty('sonatypePublish') ? true : false | ||||||||||||||
| incremental_build = project.hasProperty('i') | ||||||||||||||
| sonatype_publish = project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword') | ||||||||||||||
|
|
||||||||||||||
| // Set defaults | ||||||||||||||
| if (!project.hasProperty("revision")) { | ||||||||||||||
|
|
@@ -37,37 +41,31 @@ allprojects { | |||||||||||||
| } | ||||||||||||||
| //Lib versions | ||||||||||||||
| version_slf4j = '1.7.5' | ||||||||||||||
|
|
||||||||||||||
| exactproVersion = '12' | ||||||||||||||
| } | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| version = "${quickfixjPrefixVersion}.${exactproVersion}" | ||||||||||||||
|
|
||||||||||||||
| subprojects { | ||||||||||||||
| apply plugin: 'eclipse' | ||||||||||||||
| apply plugin: 'jacoco' | ||||||||||||||
| apply plugin: 'java' | ||||||||||||||
| apply plugin: 'maven' | ||||||||||||||
| apply plugin: 'maven-publish' | ||||||||||||||
|
|
||||||||||||||
| if (sonatype_publish) { | ||||||||||||||
| apply plugin: 'signing' | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| group = 'com.exactpro.quickfixj' | ||||||||||||||
| version = "1.6.0.${exactproVersion}" | ||||||||||||||
|
|
||||||||||||||
| sourceCompatibility = 1.7 //Java version compatibility to use when compiling Java source. | ||||||||||||||
| targetCompatibility = 1.7 //Java version to generate classes for. | ||||||||||||||
| sourceCompatibility = JavaVersion.VERSION_1_7 //Java version compatibility to use when compiling Java source. | ||||||||||||||
| targetCompatibility = JavaVersion.VERSION_1_7 //Java version to generate classes for. | ||||||||||||||
| compileJava.options.debugOptions.debugLevel = "source,lines,vars" // Include debug information | ||||||||||||||
|
|
||||||||||||||
| buildscript { // artifacrory plugin | ||||||||||||||
| repositories { | ||||||||||||||
| jcenter() | ||||||||||||||
| mavenCentral() | ||||||||||||||
| gradlePluginPortal() | ||||||||||||||
Nikita-Smirnov-Exactpro marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||
| } | ||||||||||||||
| dependencies { | ||||||||||||||
| classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.2.+') | ||||||||||||||
| classpath(group: 'com.netflix.nebula', name: 'gradle-extra-configurations-plugin', version: '2.2.+') | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| configurations.all { | ||||||||||||||
| resolutionStrategy.cacheChangingModulesFor 0, 'seconds' | ||||||||||||||
| } | ||||||||||||||
|
|
@@ -78,11 +76,11 @@ subprojects { | |||||||||||||
| name 'MavenLocal' // for local builds only | ||||||||||||||
| url sharedDir | ||||||||||||||
| } | ||||||||||||||
| jcenter() | ||||||||||||||
| mavenCentral() | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| configurations { | ||||||||||||||
| compile.exclude module: 'avalon-framework-api' | ||||||||||||||
| implementation.exclude module: 'avalon-framework-api' | ||||||||||||||
|
|
||||||||||||||
| all { | ||||||||||||||
| transitive = true | ||||||||||||||
|
|
@@ -127,66 +125,79 @@ subprojects { | |||||||||||||
| } | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| uploadArchives { | ||||||||||||||
| repositories { | ||||||||||||||
| mavenDeployer { | ||||||||||||||
| if (sonatype_publish) { | ||||||||||||||
| beforeDeployment { | ||||||||||||||
| MavenDeployment deployment -> signing.signPom(deployment) | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") { | ||||||||||||||
| authentication(userName: ossrhUsername, password: ossrhPassword) | ||||||||||||||
| } | ||||||||||||||
| publishing { | ||||||||||||||
| publications { | ||||||||||||||
| mavenJava(MavenPublication) { | ||||||||||||||
| from components.java | ||||||||||||||
|
|
||||||||||||||
| snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") { | ||||||||||||||
| authentication(userName: ossrhUsername, password: ossrhPassword) | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| pom.project { | ||||||||||||||
| name 'Exactpro QuickFixJ' | ||||||||||||||
| if (sonatype_publish) { | ||||||||||||||
| pom { | ||||||||||||||
| name = 'Exactpro QuickFixJ' | ||||||||||||||
| packaging 'jar' | ||||||||||||||
| // optionally artifactId can be defined here | ||||||||||||||
| description 'QuickFixJ is one of such libraries we depend on and which was modified by Exactpro.' | ||||||||||||||
| url 'https://github.com/Exactpro/quickfixj' | ||||||||||||||
| url = vcsUrl | ||||||||||||||
|
|
||||||||||||||
| scm { | ||||||||||||||
| connection 'scm:git:https://github.com/Exactpro/quickfixj' | ||||||||||||||
| developerConnection 'scm:git:https://github.com/Exactpro/quickfixj' | ||||||||||||||
| url 'https://github.com/Exactpro/quickfixj' | ||||||||||||||
| connection = 'scm:git:https://github.com/Exactpro/quickfixj' | ||||||||||||||
| developerConnection = 'scm:git:https://github.com/Exactpro/quickfixj' | ||||||||||||||
| url = vcsUrl | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| licenses { | ||||||||||||||
| license { | ||||||||||||||
| name 'The Apache License, Version 2.0' | ||||||||||||||
| url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||||||||||||||
| name = 'The Apache License, Version 2.0' | ||||||||||||||
| url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||||||||||||||
| } | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| developers { | ||||||||||||||
| developer { | ||||||||||||||
| id 'Nikita-Smirnov-Exactpro' | ||||||||||||||
| name 'Nikita Smirnov' | ||||||||||||||
| email 'nikita.smirnov@exactprosystems.com' | ||||||||||||||
| id = 'Nikita-Smirnov-Exactpro' | ||||||||||||||
| name = 'Nikita Smirnov' | ||||||||||||||
| email = 'nikita.smirnov@exactprosystems.com' | ||||||||||||||
|
||||||||||||||
| id = 'Nikita-Smirnov-Exactpro' | |
| name = 'Nikita Smirnov' | |
| email = 'nikita.smirnov@exactprosystems.com' | |
| id = 'sf_devs' | |
| name = 'sf_devs' | |
| email = 'sf_devs@exactpro.com' |
id.set("developer")
name.set("developer")
email.set("developer@exactpro.com")
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
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 |
|---|---|---|
|
|
@@ -14,9 +14,6 @@ | |
| * limitations under the License. | ||
| ******************************************************************************/ | ||
|
|
||
| apply plugin: 'artifactory' | ||
| apply plugin: 'provided-base' | ||
|
|
||
| ext { | ||
| dictDir = file('src/main/dicts') | ||
| } | ||
|
|
@@ -39,24 +36,24 @@ sourceSets { | |
|
|
||
| dependencies { | ||
| if (incremental_build) { | ||
|
||
| compile 'com.exactpro.quickfixj:quickfixj-code-generator:1.6.0.1-SNAPSHOT' | ||
| implementation 'com.exactpro.quickfixj:quickfixj-code-generator:1.6.0.1-SNAPSHOT' | ||
| } else { | ||
| compile project(':quickfixj-codegenerator') | ||
| implementation project(':quickfixj-codegenerator') | ||
| } | ||
|
|
||
| compile 'com.exactpro.mina:apache-mina-core:2.0.9.1' | ||
| implementation 'com.exactpro.mina:apache-mina-core:2.0.9.1' | ||
|
|
||
| compile "org.slf4j:slf4j-api:${version_slf4j}" | ||
| implementation "org.slf4j:slf4j-api:${version_slf4j}" | ||
|
|
||
| compile 'com.cloudhopper.proxool:proxool:0.9.1' | ||
| implementation 'com.cloudhopper.proxool:proxool:0.9.1' | ||
|
|
||
| testCompile 'junit:junit:4.10' | ||
| testCompile 'org.mockito:mockito-all:1.10.19' | ||
| testCompile 'org.mockito:mockito-core:1.10.19' | ||
| testCompile 'org.hamcrest:hamcrest-all:1.1' | ||
| testCompile 'hsqldb:hsqldb:1.8.0.10' | ||
| testCompile 'tyrex:tyrex:1.0.1' | ||
| testCompile "org.slf4j:slf4j-jdk14:${version_slf4j}" | ||
| testImplementation 'junit:junit:4.10' | ||
| testImplementation 'org.mockito:mockito-all:1.10.19' | ||
| testImplementation 'org.mockito:mockito-core:1.10.19' | ||
| testImplementation 'org.hamcrest:hamcrest-all:1.1' | ||
| testImplementation 'hsqldb:hsqldb:1.8.0.10' | ||
| testImplementation 'tyrex:tyrex:1.0.1' | ||
| testImplementation "org.slf4j:slf4j-jdk14:${version_slf4j}" | ||
| } | ||
|
|
||
| task generateMessage { | ||
|
|
@@ -94,5 +91,5 @@ test { | |
| /*afterTest { desc, result -> | ||
| println "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}. Time: ${(result.endTime - result.startTime)/1000}s" | ||
| }*/ | ||
| testLogging.showStandardStreams = true | ||
| // testLogging.showStandardStreams = true | ||
| } | ||
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.