Skip to content

Commit

Permalink
Protobuf Update Release Date Status (#24)
Browse files Browse the repository at this point in the history
* Protobuf Update & deps update
* Update Git Actions
* Update Tests
* Fix jitpack
* Update Readme
  • Loading branch information
husnjak authored May 22, 2023
1 parent 1621d4e commit c8ee0d1
Show file tree
Hide file tree
Showing 108 changed files with 2,554 additions and 3,834 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
java-version: 11
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v2.4.2
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
java-version: '11'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v2.4.2
- name: Execute Gradle build
run: ./gradlew build --no-daemon -x publish -x sign
env:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Maven Central](https://img.shields.io/maven-central/v/io.github.husnjak/igdb-api-jvm?versionPrefix=1.0.8)
[![Maven Central](https://img.shields.io/maven-central/v/io.github.husnjak/igdb-api-jvm?versionPrefix=1.0.11)](https://central.sonatype.com/artifact/io.github.husnjak/igdb-api-jvm/1.0.11)
[![](https://jitpack.io/v/husnjak/IGDB-API-JVM.svg)](https://jitpack.io/#husnjak/IGDB-API-JVM)
# IGDB API-JVM (V4)
A Kotlin wrapper for the IGDB.com Video Game Database API.
Expand Down Expand Up @@ -34,15 +34,15 @@ __Maven__
<dependency>
<groupId>io.github.husnjak</groupId>
<artifactId>igdb-api-jvm</artifactId>
<version>1.0.10</version>
<version>1.0.11</version>
</dependency>
```

__Gradle__

``` gradle
dependencies {
implementation 'io.github.husnjak:igdb-api-jvm:1.0.10'
implementation 'io.github.husnjak:igdb-api-jvm:1.0.11'
}
```

Expand Down
22 changes: 14 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ import com.google.protobuf.gradle.GenerateProtoTask
import de.undercouch.gradle.tasks.download.Download

plugins {
kotlin("jvm") version "1.7.20"
id("org.jetbrains.dokka") version "1.7.20"
kotlin("jvm") version "1.8.21"
id("org.jetbrains.dokka") version "1.8.10"
id("maven-publish")
id("signing")
id("de.undercouch.download") version "4.0.4"
id("de.undercouch.download") version "5.4.0"
id("com.google.protobuf") version "0.8.19"
}

group = "io.github.husnjak"
version = findProperty("version") as String

val fuelVersion = "2.3.1"
val protobufJavaVersion = "3.21.12"
val junitJupiterVersion = "5.9.0"
val junitPlatformVersion = "1.9.0"
val protobufJavaVersion = "3.23.1"
val junitJupiterVersion = "5.9.3"
val junitPlatformVersion = "1.9.3"

repositories {
mavenCentral()
Expand Down Expand Up @@ -53,13 +53,14 @@ sourceSets {

tasks {
compileKotlin {
kotlinOptions.jvmTarget = "11"
kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString()
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString()
}
dokkaJavadoc {
outputDirectory.set(buildDir.resolve("javadoc"))
dependsOn(getTasksByName("generateProto", true))
}
withType<GenerateProtoTask> {
dependsOn(downloadProtoFiles)
Expand Down Expand Up @@ -164,6 +165,11 @@ publishing {
}

signing {
val isJitpack = System.getenv("JITPACK") ?: ""
if (isJitpack == "true"){
return@signing
}

if (version.toString().contains("local")) {
useGpgCmd()
} else {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
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.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 2 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jdk:
- openjdk11
41 changes: 3 additions & 38 deletions src/main/java/proto/AgeRating.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 3 additions & 38 deletions src/main/java/proto/AgeRatingContentDescription.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 2 additions & 37 deletions src/main/java/proto/AgeRatingContentDescriptionResult.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c8ee0d1

Please sign in to comment.