Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions gen-tests.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies {

// JAVA

val generateJavaTests by tasks.creating(JavaExec::class) {
val generateJavaTests by tasks.registering(JavaExec::class) {
group = "Generate Tests"
description = "Generates Java classes from the test protos"
classpath = wire
Expand All @@ -47,7 +47,7 @@ val generateJavaTests by tasks.creating(JavaExec::class) {
) + PROTOS
}

val generateKotlinClassAmongJavaTests by tasks.creating(JavaExec::class) {
val generateKotlinClassAmongJavaTests by tasks.registering(JavaExec::class) {
group = "Generate Tests"
description = "Generates Kotlin classes from the Java test protos"
classpath = wire
Expand All @@ -61,7 +61,7 @@ val generateKotlinClassAmongJavaTests by tasks.creating(JavaExec::class) {

// NO OPTIONS

val generateNoOptionsTests by tasks.creating(JavaExec::class) {
val generateNoOptionsTests by tasks.registering(JavaExec::class) {
group = "Generate Tests"
description = "Generates Java classes with no options from the test protos"
classpath = wire
Expand Down Expand Up @@ -155,7 +155,7 @@ val generateGsonAdapterKotlinTests by tasks.creating(JavaExec::class) {
)
}

val generateGsonTests by tasks.creating {
val generateGsonTests by tasks.registering {
group = "Generate Tests"
description = "Generates Java and Kotlin classes that use Gson from the test protos"
dependsOn(
Expand Down Expand Up @@ -536,7 +536,7 @@ val generateSwiftProto2Tests by tasks.creating(JavaExec::class) {
)
}

val generateSwiftTests by tasks.creating {
val generateSwiftTests by tasks.registering {
group = "Generate Tests"
description = "Generates Swift classes from the test protos"
if (project.properties.get("swift") != "false") {
Expand Down Expand Up @@ -638,7 +638,7 @@ val generateMoshiAdapterKotlinTests by tasks.creating(JavaExec::class) {
)
}

val generateMoshiTests by tasks.creating {
val generateMoshiTests by tasks.registering {
group = "Generate Tests"
description = "Generates Java and Kotlin classes that use Moshi from the test protos"
dependsOn(
Expand Down Expand Up @@ -695,7 +695,7 @@ val generateSharedJsonKotlinTests by tasks.creating(JavaExec::class) {
)
}

val generateSharedJson by tasks.creating {
val generateSharedJson by tasks.registering {
group = "Generate Tests"
description = "Generates Java and Kotlin classes for shared JSON tests"
dependsOn(
Expand All @@ -704,7 +704,7 @@ val generateSharedJson by tasks.creating {
)
}

val generateTests by tasks.creating {
val generateTests by tasks.registering {
group = "Generate Tests"
description = "Generates all test classes"
dependsOn(
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
distributionSha256Sum=a17ddd85a26b6a7f5ddb71ff8b05fc5104c0202c6e64782429790c933686c806
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
5 changes: 1 addition & 4 deletions gradlew

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

3 changes: 1 addition & 2 deletions gradlew.bat

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

2 changes: 1 addition & 1 deletion wire-benchmarks/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {
sourceSets {
main {
// Adds protobuf generated classes to our source sets.
java.srcDir("$buildDir/generated/source/proto/main/java")
java.srcDir(layout.buildDirectory.dir("generated/source/proto/main/java"))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ buildscript {
apply plugin: 'application'
apply plugin: 'com.squareup.wire'

mainClassName = 'com.squareup.dinosaurs.Sample'
application.mainClass = "com.squareup.dinosaurs.Sample"

repositories {
maven {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: 'application'
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'com.squareup.wire'

mainClassName = 'com.squareup.dinosaurs.Sample'
application.mainClass = "com.squareup.dinosaurs.Sample"

repositories {
maven {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: 'application'
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'com.squareup.wire'

mainClassName = 'com.squareup.dinosaurs.Sample'
application.mainClass = "com.squareup.dinosaurs.Sample"

repositories {
maven {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ apply plugin: 'application'
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'com.squareup.wire'

mainClassName = 'com.squareup.dinosaurs.Sample'
application.mainClass = "com.squareup.dinosaurs.Sample"


repositories {
maven {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: 'application'
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'com.squareup.wire'

mainClassName = 'com.squareup.dinosaurs.Sample'
application.mainClass = "com.squareup.dinosaurs.Sample"

repositories {
maven {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: 'application'
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'com.squareup.wire'

mainClassName = 'com.squareup.dinosaurs.Sample'
application.mainClass = "com.squareup.dinosaurs.Sample"

repositories {
maven {
Expand Down
4 changes: 2 additions & 2 deletions wire-reflector/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

val main by sourceSets.getting {
java.srcDir("$buildDir/wire")
java.srcDir(layout.buildDirectory.dir("wire"))
}

dependencies {
Expand Down Expand Up @@ -35,7 +35,7 @@ val generateReflectionProtos by tasks.registering(JavaExec::class) {
classpath = generateReflectionProtosClasspath
args(
"--proto_path=$projectDir/src/main/resources",
"--kotlin_out=$buildDir/wire",
"--kotlin_out=${layout.buildDirectory.get()}/wire",
"grpc/reflection/v1alpha/reflection.proto"
)
}
Expand Down
Loading
Loading