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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

#
# Copyright © 2015-2021 the original authors.
# Copyright © 2015 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -114,7 +114,6 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;;
esac

CLASSPATH="\\\"\\\""


# Determine the Java command to use to start the JVM.
Expand Down Expand Up @@ -172,7 +171,6 @@ fi
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )

JAVACMD=$( cygpath --unix "$JAVACMD" )

Expand Down Expand Up @@ -212,7 +210,6 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"

Expand Down
3 changes: 1 addition & 2 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ goto fail
:execute
@rem Setup the command line

set CLASSPATH=


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*

:end
@rem End local scope for the variables with windows NT shell
Expand Down
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