-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
2,222 additions
and
2,565 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 |
---|---|---|
@@ -1,38 +1,37 @@ | ||
name-template: '$RESOLVED_VERSION' | ||
tag-template: '$RESOLVED_VERSION' | ||
--- | ||
name-template: "$RESOLVED_VERSION" | ||
tag-template: "$RESOLVED_VERSION" | ||
prerelease: true | ||
template: | | ||
# What's Changed | ||
$CHANGES | ||
categories: | ||
- title: Breaking | ||
label: breaking | ||
- title: New | ||
label: enhancement | ||
- title: Bug Fixes | ||
label: bug | ||
- title: Maintenance | ||
label: maintenance | ||
- title: Documentation | ||
label: documentation | ||
- title: Dependency Updates | ||
label: dependencies | ||
|
||
- title: "Breaking" | ||
label: "breaking" | ||
- title: "New" | ||
label: "enhancement" | ||
- title: "Bug Fixes" | ||
label: "bug" | ||
- title: "Maintenance" | ||
label: "maintenance" | ||
- title: "Documentation" | ||
label: "documentation" | ||
- title: "Dependency Updates" | ||
label: "dependencies" | ||
version-resolver: | ||
major: | ||
labels: | ||
- breaking | ||
- "breaking" | ||
minor: | ||
labels: | ||
- enhancement | ||
- "enhancement" | ||
patch: | ||
labels: | ||
- bug | ||
- maintenance | ||
- documentation | ||
- dependencies | ||
- security | ||
|
||
- "bug" | ||
- "maintenance" | ||
- "documentation" | ||
- "dependencies" | ||
- "security" | ||
exclude-labels: | ||
- skip-changelog | ||
- "skip-changelog" |
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,37 +1,31 @@ | ||
name: Build | ||
|
||
on: | ||
--- | ||
name: "Build" | ||
"on": | ||
pull_request: | ||
branches: [ master ] | ||
|
||
branches: | ||
- "master" | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
name: "Build" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '8' | ||
|
||
- uses: arduino/setup-protoc@v1 | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle.kts') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradlew- | ||
- run: | | ||
chmod +x gradlew | ||
./gradlew build | ||
- uses: "actions/checkout@v4" | ||
- uses: "actions/setup-java@v4" | ||
with: | ||
distribution: "adopt" | ||
java-version: "11" | ||
- uses: "actions/cache@v4" | ||
with: | ||
path: "~/.gradle/caches" | ||
key: "${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle.kts') }}" | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- uses: "actions/cache@v4" | ||
with: | ||
path: "~/.gradle/wrapper" | ||
key: "${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle-wrapper.properties') }}" | ||
restore-keys: | | ||
${{ runner.os }}-gradlew- | ||
- run: | | ||
chmod +x gradlew | ||
./gradlew 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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
name: Update Changelog | ||
|
||
on: | ||
--- | ||
name: "Update Changelog" | ||
"on": | ||
push: | ||
branches: [ master ] | ||
|
||
branches: | ||
- "master" | ||
jobs: | ||
changelog: | ||
name: Update Changelog | ||
runs-on: ubuntu-latest | ||
if: ${{ !contains(github.event.head_commit.message, 'skip-snapshot') }} | ||
name: "Update Changelog" | ||
runs-on: "ubuntu-latest" | ||
if: "${{ !contains(github.event.head_commit.message, 'skip-snapshot') }}" | ||
steps: | ||
- uses: release-drafter/release-drafter@master | ||
id: release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: "release-drafter/release-drafter@master" | ||
id: "release" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
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,32 @@ | ||
--- | ||
name: "Release" | ||
"on": | ||
release: | ||
types: | ||
- "released" | ||
jobs: | ||
build: | ||
name: "Release" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: "actions/checkout@v4" | ||
- uses: "actions/setup-java@v4" | ||
with: | ||
distribution: "adopt" | ||
java-version: "11" | ||
- uses: "actions/cache@v4" | ||
with: | ||
path: "~/.gradle/caches" | ||
key: "${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle.kts') }}" | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- uses: "actions/cache@v4" | ||
with: | ||
path: "~/.gradle/wrapper" | ||
key: "${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle-wrapper.properties') }}" | ||
restore-keys: | | ||
${{ runner.os }}-gradlew- | ||
- run: | | ||
[[ "${{ github.event.release.tag_name }}" =~ ^[0-9]+(\.[0-9]+)*$ ]] || exit -1 | ||
chmod +x gradlew | ||
./gradlew -Psign-required=true publish -Pversion="${{ github.event.release.tag_name }}" -PmavenCentralUsername="${{ secrets.MAVEN_CENTRAL_USERNAME }}" -PmavenCentralPassword="${{ secrets.MAVEN_CENTRAL_PASSWORD }}" -PsigningInMemoryKey="${{ secrets.GPG_PRIVATE_KEY_ARMORED }}" -PsigningInMemoryKeyPassword="${{ secrets.GPG_PASSPHRASE }}" |
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,118 +1,18 @@ | ||
import com.google.protobuf.gradle.id | ||
import net.infumia.gradle.applyProtobuf | ||
import net.infumia.gradle.publish | ||
import net.infumia.gradle.spotless | ||
|
||
plugins { | ||
java | ||
`java-library` | ||
`maven-publish` | ||
alias(libs.plugins.protobuf) | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
compileOnlyApi(libs.protobuf) | ||
compileOnlyApi(libs.grpc.protobuf) | ||
compileOnlyApi(libs.grpc.stub) | ||
compileOnlyApi(libs.annotationsapi) | ||
} | ||
|
||
sourceSets { | ||
main { | ||
java { | ||
srcDirs("build/generated/source/proto/main/java") | ||
} | ||
resources { | ||
srcDir("src/main/proto") | ||
} | ||
} | ||
} | ||
plugins { java } | ||
|
||
protobuf { | ||
protoc { artifact = libs.protoc.get().toString() } | ||
publish() | ||
|
||
plugins { | ||
id("grpc") { | ||
artifact = "io.grpc:protoc-gen-grpc-java:${libs.versions.grpc.get()}" | ||
} | ||
} | ||
applyProtobuf() | ||
|
||
generateProtoTasks { | ||
all().forEach { | ||
it.plugins { | ||
id("grpc") { | ||
outputSubDir = "java" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
tasks { | ||
compileJava { | ||
options.encoding = Charsets.UTF_8.name() | ||
} | ||
|
||
javadoc { | ||
options.encoding = Charsets.UTF_8.name() | ||
(options as StandardJavadocDocletOptions).tags("todo") | ||
exclude("**/allocation/**") | ||
exclude("**/agones/**") | ||
exclude("**/com/google/api/**") | ||
exclude("**/grpc/**") | ||
} | ||
|
||
val javadocJar by creating(Jar::class) { | ||
dependsOn("javadoc") | ||
archiveClassifier.set("javadoc") | ||
from(javadoc) | ||
} | ||
spotless() | ||
|
||
val sourcesJar by creating(Jar::class) { | ||
dependsOn("classes") | ||
archiveClassifier.set("sources") | ||
duplicatesStrategy = DuplicatesStrategy.INCLUDE | ||
from(sourceSets["main"].allSource) | ||
} | ||
|
||
processResources { | ||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("mavenJava") { | ||
groupId = project.group.toString() | ||
artifactId = "agones4j" | ||
version = project.version.toString() | ||
from(components["java"]) | ||
artifact(tasks["sourcesJar"]) | ||
artifact(tasks["javadocJar"]) | ||
pom { | ||
name.set("Agones4J") | ||
description.set("Java wrapper for Agones client SDK.") | ||
url.set("https://infumia.com.tr/") | ||
licenses { | ||
license { | ||
name.set("MIT License") | ||
url.set("https://mit-license.org/license.txt") | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set("portlek") | ||
name.set("Hasan Demirtaş") | ||
email.set("[email protected]") | ||
} | ||
} | ||
scm { | ||
connection.set("scm:git:git://github.com/infumia/agones4j.git") | ||
developerConnection.set("scm:git:ssh://github.com/infumia/agones4j.git") | ||
url.set("https://github.com/infumia/agones4j") | ||
} | ||
} | ||
} | ||
} | ||
dependencies { | ||
compileOnly(libs.protobuf) | ||
compileOnly(libs.grpc.protobuf) | ||
compileOnly(libs.grpc.stub) | ||
compileOnly(libs.annotationsapi) | ||
} |
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,18 @@ | ||
plugins { `kotlin-dsl` } | ||
|
||
repositories { | ||
mavenCentral() | ||
gradlePluginPortal() | ||
} | ||
|
||
dependencies { | ||
// TODO: portlek, remove once | ||
// https://github.com/gradle/gradle/issues/15383#issuecomment-779893192 is fixed | ||
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location)) | ||
|
||
implementation(libs.nexus.plugin) | ||
implementation(libs.spotless.plugin) | ||
implementation(libs.protobuf.plugin) | ||
} | ||
|
||
kotlin { jvmToolchain(11) } |
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,3 @@ | ||
dependencyResolutionManagement { | ||
versionCatalogs { create("libs") { from(files("../gradle/libs.versions.toml")) } } | ||
} |
Oops, something went wrong.