Skip to content

Commit ecb9ad1

Browse files
committed
Changed the selftest to create a simple project to test with
1 parent 6891d93 commit ecb9ad1

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

.github/workflows/build-verification.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,28 @@ jobs:
4242
run: ./gradlew clean publishToMavenLocal -Dgradle.cache.remote.push=false
4343
env:
4444
DISABLE_REQUIRED_SIGNING: true
45-
- name: Modify the project to use the locally published plugin
45+
- name: Create a test project
4646
run: |
47-
sed -i '1i\
48-
pluginManagement {\
49-
repositories {\
50-
mavenLocal()\
51-
gradlePluginPortal()\
52-
mavenCentral()\
53-
}}\
54-
' settings.gradle.kts
55-
sed -i -E 's/(id\("com.gradle.common-custom-user-data-gradle-plugin"\) version )"2[0-9\.]*"/\1"2+"/' settings.gradle.kts
47+
mkdir -p test-project
48+
cd test-project
49+
echo """
50+
pluginManagement {
51+
repositories {
52+
mavenLocal()
53+
gradlePluginPortal()
54+
}
55+
}
56+
57+
plugins {
58+
id(\"com.gradle.develocity\") version \"4+\"
59+
id(\"com.gradle.common-custom-user-data-gradle-plugin\") version \"2+\"
60+
}
61+
62+
develocity {
63+
server = \"https://ge.solutions-team.gradle.com\"
64+
}
65+
""" > settings. gradle.kts
5666
5767
- name: Run a build with the locally published plugin
5868
id: build-with-local-plugin
59-
run: ./gradlew clean build -i -Dgradle.cache.remote.push=false
69+
run: gradle help

0 commit comments

Comments
 (0)