Skip to content
Merged
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
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
xcode-version: '26.1.1'

# We set `SDKROOT` as a workaround for https://github.com/gradle/gradle/pull/29227
- name: Check test files
Expand Down Expand Up @@ -132,14 +132,16 @@ jobs:
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
xcode-version: '26.1.1'

# We set `SDKROOT` as a workaround for https://github.com/gradle/gradle/pull/29227
- name: Test Swift Runtime
# This builds the wire-swift-runtime, verifies that generated protos match what's currently
# checked into the repo both for the runtime itself and for its tests, and runs the tests.
# We skip xcTest because Gradle 9 + Xcode 26 fails to link the test binary as an executable
# (_main symbol missing). Tests are run via `swift test` below instead.
run: |
SDKROOT=$(xcrun -sdk macosx --show-sdk-path) ./gradlew :wire-runtime-swift:build --warning-mode all
SDKROOT=$(xcrun -sdk macosx --show-sdk-path) ./gradlew :wire-runtime-swift:build -x xcTest --warning-mode all
if [ ! -z "$(git status --porcelain)" ]; then git diff; echo -e "\nGenerated files changed. Did you run ./gradlew generateSwiftProtos?"; exit 1; fi

- name: Generate Swift from golden proto files
Expand All @@ -150,7 +152,7 @@ jobs:
run: |
SDKROOT=$(xcrun -sdk macosx --show-sdk-path) ./gradlew generateSwiftTests --warning-mode all
if [ ! -z "$(git status --porcelain)" ]; then git diff; echo -e "\nGenerated files changed. Did you run ./gradlew generateSwiftProtos and generateSwiftTests?"; exit 1; fi
SDKROOT=$(xcrun -sdk macosx --show-sdk-path) ./gradlew -p wire-tests-swift build --warning-mode all
SDKROOT=$(xcrun -sdk macosx --show-sdk-path) ./gradlew -p wire-tests-swift build -x xcTest --warning-mode all

- name: Test Swift Package Manager
run: swift test
Expand Down Expand Up @@ -210,7 +212,7 @@ jobs:
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
xcode-version: '26.1.1'

# We set `SDKROOT` as a workaround for https://github.com/gradle/gradle/pull/29227
- name: Upload Artifacts
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
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 @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
setUrl("file://${rootDir.absolutePath}/../../../../../build/localMaven")
setUrl(File(rootDir, "../../../../../build/localMaven").toURI().toString())
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pluginManagement {
repositories {
maven {
url = uri("file://${rootDir.absolutePath}/../../../../../build/localMaven")
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
google()
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand All @@ -18,7 +18,7 @@ apply plugin: 'com.squareup.wire'
// See installProtoJars task in wire-gradle-plugin/build.gradle.kts
repositories {
maven {
url "file://${projectDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand All @@ -18,7 +18,7 @@ apply plugin: 'com.squareup.wire'
// See installProtoJars task in wire-gradle-plugin/build.gradle.kts
repositories {
maven {
url "file://${projectDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
4 changes: 2 additions & 2 deletions wire-gradle-plugin/src/test/projects/dry-run/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand All @@ -17,7 +17,7 @@ apply plugin: 'com.squareup.wire'

repositories {
maven {
url "file://${projectDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

repositories {
maven {
url "file://${rootDir.absolutePath}/../../../../../build/localMaven"
url new File(rootDir, "../../../../../build/localMaven").toURI().toString()
}
mavenCentral()
google()
Expand Down
Loading
Loading