Skip to content

Commit

Permalink
✨ Support server side stream gRPC transcoding via http event… (#488)
Browse files Browse the repository at this point in the history
* ✨ Support server side stream gRPC transcoding via http event stream

* 💚 Using gradle 7.5.1

* 💚 Using gradle 7.5.1

* Chmod

* ⬆️ Upgrade to gradle 8 and kotlin 1.8.10
  • Loading branch information
devkanro authored Mar 9, 2023
1 parent 6940042 commit fa25429
Show file tree
Hide file tree
Showing 127 changed files with 780 additions and 2,631 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
dependency-repositories: local,central,portal,google,snapshot
snapshot-url: https://s01.oss.sonatype.org/content/repositories/snapshots
- name: Build with Gradle
run: gradle build
run: gradle build --no-daemon
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
gradle-portal-secret: ${{ secrets.GRADLE_PUBLISH_SECRET }}
gpg-key-name: ${{ secrets.GPG_KEY_NAME }}
- name: Publish with Gradle
run: gradle publish
run: gradle publish --no-daemon
- name: Publish plugins to Gradle Portal
if: ${{ github.event_name == 'release' }}
run: gradle publishPlugins
run: gradle publishPlugins --no-daemon
2 changes: 1 addition & 1 deletion bom/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
`java-platform`
id("nebula.maven-publish")
id("com.netflix.nebula.maven-publish")
sisyphus
}

Expand Down
17 changes: 1 addition & 16 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("nebula.contacts")
id("com.netflix.nebula.contacts")
}

contacts {
Expand All @@ -8,19 +8,4 @@ contacts {
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")
})
addPerson("[email protected]", delegateClosureOf<nebula.plugin.contacts.Contact> {
moniker = "ZhangJin"
github = "ZhangJin233"
roles.add("tester")
})
}
24 changes: 10 additions & 14 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@ repositories {
}

dependencies {
implementation(platform("com.bybutter.sisyphus:sisyphus-dependencies:1.5.31"))
implementation("com.bybutter.sisyphus.tools:sisyphus-protobuf-gradle-plugin")
implementation("com.bybutter.sisyphus.tools:sisyphus-project-gradle-plugin")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin")
implementation("org.jetbrains.kotlin:kotlin-allopen")
implementation("org.springframework.boot:spring-boot-gradle-plugin")
implementation("org.jlleitschuh.gradle:ktlint-gradle")
implementation("com.github.ben-manes:gradle-versions-plugin")
implementation("com.netflix.nebula:nebula-publishing-plugin")
implementation("com.netflix.nebula:gradle-contacts-plugin")
implementation("com.netflix.nebula:gradle-info-plugin")
implementation("org.gradle.kotlin:plugins")
implementation("com.gradle.publish:plugin-publish-plugin")
implementation("org.eclipse.jgit:org.eclipse.jgit")
implementation(libs.nebula.contacts)
implementation(libs.nebula.info)
implementation(libs.nebula.publishing)
implementation(libs.gradle.sisyphus)
implementation(libs.gradle.sisyphus.protobuf)
implementation(libs.gradle.ktlint)
implementation(libs.gradle.spring)
implementation(libs.gradle.kotlin)
implementation(libs.gradle.kotlin.allopen)
implementation(libs.gradle.plugin.publish)
}
7 changes: 7 additions & 0 deletions buildSrc/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
}
}
150 changes: 0 additions & 150 deletions buildSrc/src/main/kotlin/dependencies.kt

This file was deleted.

26 changes: 0 additions & 26 deletions buildSrc/src/main/kotlin/kotlin.kt

This file was deleted.

53 changes: 23 additions & 30 deletions buildSrc/src/main/kotlin/project.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import com.bybutter.sisyphus.project.gradle.SisyphusProjectPlugin
import com.github.benmanes.gradle.versions.VersionsPlugin
import org.gradle.api.JavaVersion
import org.gradle.api.Project
import org.gradle.api.plugins.JavaLibraryPlugin
Expand All @@ -8,36 +7,51 @@ import org.gradle.api.tasks.testing.Test
import org.gradle.kotlin.dsl.dependencies
import org.gradle.kotlin.dsl.withType
import org.gradle.plugins.ide.idea.IdeaPlugin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

val Project.java: Project
get() {
pluginManager.apply(JavaLibraryPlugin::class.java)
pluginManager.apply(SisyphusProjectPlugin::class.java)

managedDependencies

tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_1_8.majorVersion
targetCompatibility = JavaVersion.VERSION_1_8.majorVersion
}
return this
}

val Project.kotlin: Project
get() {
apply {
plugin("kotlin")
plugin("kotlin-spring")
plugin("org.jlleitschuh.gradle.ktlint")
}

dependencies {
add("api", "org.jetbrains.kotlin:kotlin-stdlib-jdk8")
add("implementation", "org.jetbrains.kotlin:kotlin-reflect")
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}

return this
}

val Project.next: Project
get() {
pluginManager.apply(IdeaPlugin::class.java)
pluginManager.apply(VersionsPlugin::class.java)

java.kotlin.managedDependencies
java.kotlin

tasks.withType<Test> {
useJUnitPlatform()
}

tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_1_8.majorVersion
targetCompatibility = JavaVersion.VERSION_1_8.majorVersion
}
return this
}

Expand All @@ -46,10 +60,6 @@ val Project.middleware: Project
next

group = "com.bybutter.sisyphus.middleware"

dependencies {
"api"(Dependencies.Spring.Boot.boot)
}
return this
}

Expand All @@ -61,28 +71,11 @@ val Project.lib: Project
return this
}

val Project.proto: Project
get() {
java

group = "com.bybutter.sisyphus.proto"

pluginManager.apply(JavaLibraryPlugin::class.java)
pluginManager.apply(SisyphusProjectPlugin::class.java)

return this
}

val Project.starter: Project
get() {
next

group = "com.bybutter.sisyphus.starter"

dependencies {
"api"(Dependencies.Spring.Boot.boot)
"testImplementation"(Dependencies.Spring.Boot.test)
}
return this
}

Expand Down
Loading

0 comments on commit fa25429

Please sign in to comment.