Skip to content

Commit 2f7e2a9

Browse files
committed
fix sample and broken links.
1 parent ef48758 commit 2f7e2a9

File tree

1 file changed

+25
-9
lines changed

1 file changed

+25
-9
lines changed

readme.md

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,22 @@ Plugin and Gradle Version
2828
| 3.4.x | 3.4 - 4.3 |
2929
| 4.5.x | >= 4.5 |
3030

31-
There is a file [SetupBuilderVersion.gradle](SetupBuilderVersion.gradle) to export the required version of SetupBuilder depending on the Gradle version. It can be used to automatically obtain the correct SetupBuilder version.
31+
There is a file [SetupBuilderVersion.gradle](scripts/SetupBuilderVersion.gradle) to export the required version of SetupBuilder depending on the Gradle version. It can be used to automatically obtain the correct SetupBuilder version.
3232

3333
It can be used as followed:
3434

35-
apply from: "https://raw.githubusercontent.com/i-net-software/SetupBuilder/master/SetupBuilderVersion.gradle"
36-
plugins {
37-
id "de.inetsoftware.setupbuilder" version setupBuilderVersion()
38-
}
35+
buildscript {
36+
repositories {
37+
maven {
38+
url uri('https://plugins.gradle.org/m2/')
39+
}
40+
}
41+
dependencies {
42+
apply from: 'https://raw.githubusercontent.com/i-net-software/SetupBuilder/master/scripts/SetupBuilderVersion.gradle'
43+
classpath 'gradle.plugin.de.inetsoftware:SetupBuilder:' + setupBuilderVersion()
44+
}
45+
}
46+
apply plugin: 'de.inetsoftware.setupbuilder'
3947

4048
Tasks
4149
----
@@ -52,10 +60,18 @@ Sample Usage
5260
----
5361
### Base Sample
5462

55-
apply from: "https://raw.githubusercontent.com/i-net-software/SetupBuilder/master/SetupBuilderVersion.gradle"
56-
plugins {
57-
id "de.inetsoftware.setupbuilder" version setupBuilderVersion()
58-
}
63+
buildscript {
64+
repositories {
65+
maven {
66+
url uri('https://plugins.gradle.org/m2/')
67+
}
68+
}
69+
dependencies {
70+
apply from: 'https://raw.githubusercontent.com/i-net-software/SetupBuilder/master/scripts/SetupBuilderVersion.gradle'
71+
classpath 'gradle.plugin.de.inetsoftware:SetupBuilder:' + setupBuilderVersion()
72+
}
73+
}
74+
apply plugin: 'de.inetsoftware.setupbuilder'
5975

6076
setupBuilder {
6177
vendor = 'i-net software'

0 commit comments

Comments
 (0)