-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Test github action * Fix typo * Fix typo * Update action version * Add snapshot repository * Add dependency repositories * Update dependency repositories * Update action version * Add publish plugin workflow * Upgrade action version * Remove publish plugins step from common publish workflow * Upgrade 'com.gradle.plugin-publish' plugin to 0.11.0 * Add sign for project plugin * Upgrade prepare action version * Add more pom info * Add description for projects * Add badge * Add developer info * Add pom info for plugin * Add portal as default dependency repository * Manage all dependencies version by bom * Upgrade version of dependencies * Upgrade gradle version to 6.4.1 * Upgrade sisyphus component to 0.0.1-M6
- Loading branch information
Showing
42 changed files
with
362 additions
and
74 deletions.
There are no files selected for viewing
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,23 @@ | ||
name: Check | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.11 | ||
- uses: ButterCam/prepare-sisyphus-build@bc33e0b | ||
with: | ||
dependency: nexus | ||
nexus-url: ${{ secrets.NEXUS_PUBLIC_URL }} | ||
nexus-username: ${{ secrets.NEXUS_USERNAME }} | ||
nexus-password: ${{ secrets.NEXUS_PASSWORD }} | ||
- name: Build with Gradle | ||
run: gradle build |
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,50 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
release: | ||
types: [ created ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.11 | ||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | ||
settings-path: ${{ github.workspace }} # location for the settings.xml file | ||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v2 | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
- uses: ButterCam/prepare-sisyphus-build@bc33e0b | ||
with: | ||
snapshot: snapshot,mavenSnapshot | ||
release: release,mavenRelease | ||
dependency: nexus | ||
nexus-url: ${{ secrets.NEXUS_PUBLIC_URL }} | ||
nexus-username: ${{ secrets.NEXUS_USERNAME }} | ||
nexus-password: ${{ secrets.NEXUS_PASSWORD }} | ||
snapshot-url: ${{ secrets.NEXUS_SNAPSHOT_URL }} | ||
snapshot-username: ${{ secrets.NEXUS_USERNAME }} | ||
snapshot-password: ${{ secrets.NEXUS_PASSWORD }} | ||
mavenSnapshot-url: https://oss.sonatype.org/content/repositories/snapshots | ||
mavenSnapshot-username: ${{ secrets.OSSRH_USERNAME }} | ||
mavenSnapshot-password: ${{ secrets.OSSRH_PASSWORD }} | ||
release-url: ${{ secrets.NEXUS_RELEASE_URL }} | ||
release-username: ${{ secrets.NEXUS_USERNAME }} | ||
release-password: ${{ secrets.NEXUS_PASSWORD }} | ||
mavenRelease-url: https://oss.sonatype.org/service/local/staging/deploy/maven2 | ||
mavenRelease-username: ${{ secrets.OSSRH_USERNAME }} | ||
mavenRelease-password: ${{ secrets.OSSRH_PASSWORD }} | ||
gradle-portal-key: ${{ secrets.GRADLE_PUBLISH_KEY }} | ||
gradle-portal-secret: ${{ secrets.GRADLE_PUBLISH_SECRET }} | ||
gpg-key-name: ${{ secrets.GPG_KEY_NAME }} | ||
- name: Publish with Gradle | ||
run: gradle publish |
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,34 @@ | ||
name: Publish Plugins | ||
|
||
on: | ||
release: | ||
types: [ created ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.11 | ||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | ||
settings-path: ${{ github.workspace }} # location for the settings.xml file | ||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v2 | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
- uses: ButterCam/prepare-sisyphus-build@bc33e0b | ||
with: | ||
dependency: nexus | ||
nexus-url: ${{ secrets.NEXUS_PUBLIC_URL }} | ||
nexus-username: ${{ secrets.NEXUS_USERNAME }} | ||
nexus-password: ${{ secrets.NEXUS_PASSWORD }} | ||
gradle-portal-key: ${{ secrets.GRADLE_PUBLISH_KEY }} | ||
gradle-portal-secret: ${{ secrets.GRADLE_PUBLISH_SECRET }} | ||
gpg-key-name: ${{ secrets.GPG_KEY_NAME }} | ||
- name: Publish plugins to Gradle Portal | ||
run: gradle publishPlugins |
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,30 @@ | ||
.gradle | ||
/build/ | ||
!foundation/gradle/wrapper/gradle-wrapper.jar | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### NetBeans ### | ||
nbproject/private/ | ||
build/ | ||
nbbuild/ | ||
dist/ | ||
nbdist/ | ||
.nb-gradle/ | ||
|
||
logs/ | ||
out/ | ||
data/elasticsearch | ||
.DS_Store |
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
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,21 @@ | ||
plugins { | ||
id("nebula.contacts") | ||
} | ||
|
||
contacts { | ||
addPerson("[email protected]", delegateClosureOf<nebula.plugin.contacts.Contact> { | ||
moniker = "higan" | ||
github = "devkanro" | ||
roles.add("owner") | ||
}) | ||
addPerson("[email protected]", delegateClosureOf<nebula.plugin.contacts.Contact> { | ||
moniker = "wangzheng" | ||
github = "GuoDuanLZ" | ||
roles.add("maintainer") | ||
}) | ||
addPerson("[email protected]", delegateClosureOf<nebula.plugin.contacts.Contact> { | ||
moniker = "future" | ||
github = "yuxin-zhao" | ||
roles.add("maintainer") | ||
}) | ||
} |
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 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,11 +1,5 @@ | ||
inline val org.gradle.plugin.use.PluginDependenciesSpec.protobuf: org.gradle.plugin.use.PluginDependencySpec | ||
get() = id("sisyphus.protobuf") | ||
get() = id("com.bybutter.sisyphus.protobuf") | ||
|
||
inline val org.gradle.plugin.use.PluginDependenciesSpec.sisyphus: org.gradle.plugin.use.PluginDependencySpec | ||
get() = id("sisyphus.project") | ||
|
||
inline val org.gradle.plugin.use.PluginDependenciesSpec.publish: org.gradle.plugin.use.PluginDependencySpec | ||
get() { | ||
id("nebula.maven-base-publish") | ||
return id("nebula.source-jar") | ||
} | ||
get() = id("com.bybutter.sisyphus.project") |
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,40 +1,52 @@ | ||
plugins { | ||
`java-platform` | ||
id("nebula.maven-publish") | ||
id("sisyphus.project") | ||
sisyphus | ||
} | ||
|
||
group = "com.bybutter.sisyphus" | ||
description = "Dependencies of Sisyphus Project (Bill of Materials)" | ||
|
||
javaPlatform { | ||
allowDependencies() | ||
} | ||
|
||
dependencies { | ||
api(platform(project(":sisyphus-bom"))) | ||
api(platform("org.springframework.boot:spring-boot-dependencies:2.2.7.RELEASE")) | ||
api(platform("org.jetbrains.kotlin:kotlin-bom:1.3.70")) | ||
api(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.3.6")) | ||
api(platform("org.springframework.boot:spring-boot-dependencies:2.3.0.RELEASE")) | ||
api(platform("org.jetbrains.kotlin:kotlin-bom:1.3.72")) | ||
api(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.3.7")) | ||
api(platform("org.apache.maven:maven:3.6.3")) | ||
api(platform("io.grpc:grpc-bom:1.29.0")) | ||
api(platform("com.google.protobuf:protobuf-bom:3.11.4")) | ||
api(platform("com.google.protobuf:protobuf-bom:3.12.0")) | ||
|
||
constraints { | ||
api("com.squareup:kotlinpoet:1.5.0") | ||
api("org.elasticsearch.client:transport:5.6.3") | ||
api("com.aliyun.hbase:alihbase-client:2.0.3") | ||
api("org.reflections:reflections:0.9.11") | ||
api("org.reflections:reflections:0.9.12") | ||
api("com.github.os72:protoc-jar:3.11.4") | ||
api("io.netty:netty-tcnative-boringssl-static:2.0.20.Final") | ||
api("org.apache.maven.wagon:wagon-http:3.3.4") | ||
api("org.junit.jupiter:junit-jupiter:5.5.1") | ||
api("io.netty:netty-tcnative-boringssl-static:2.0.30.Final") | ||
api("org.apache.maven.wagon:wagon-http:3.4.0") | ||
api("org.junit.jupiter:junit-jupiter:5.6.2") | ||
api("org.reflections:reflections:0.9.11") | ||
api("com.squareup.okhttp3:okhttp:4.2.2") | ||
api("com.squareup.retrofit2:retrofit:2.7.1") | ||
api("io.github.resilience4j:resilience4j-retrofit:1.3.1") | ||
api("com.squareup.okhttp3:okhttp:4.7.1") | ||
api("com.squareup.retrofit2:retrofit:2.8.2") | ||
api("io.github.resilience4j:resilience4j-retrofit:1.4.0") | ||
api("org.antlr:antlr4:4.8") | ||
api("io.swagger.core.v3:swagger-core:2.1.1") | ||
api("io.swagger.core.v3:swagger-core:2.1.2") | ||
api("org.jooq:jooq:3.13.1") | ||
api("com.google.api.grpc:proto-google-common-protos:1.18.0") | ||
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.70") | ||
api("org.jetbrains.kotlin:kotlin-allopen:1.3.70") | ||
api("org.springframework.boot:spring-boot-gradle-plugin:2.2.7.RELEASE") | ||
api("org.jlleitschuh.gradle:ktlint-gradle:9.2.1") | ||
api("com.github.ben-manes:gradle-versions-plugin:0.27.0") | ||
api("com.netflix.nebula:nebula-publishing-plugin:17.2.1") | ||
api("com.netflix.nebula:gradle-contacts-plugin:5.1.0") | ||
api("com.netflix.nebula:gradle-info-plugin:7.1.4") | ||
api("org.gradle.kotlin:plugins:1.2.11") | ||
api("com.gradle.publish:plugin-publish-plugin:0.11.0") | ||
api("org.eclipse.jgit:org.eclipse.jgit:5.7.0.202003110725-r") | ||
} | ||
} |
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-6.3-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-all.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
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
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
Oops, something went wrong.