Skip to content

Commit 6f3472a

Browse files
committed
1.0.2-SNAPSHOT
1 parent 4f6c1ac commit 6f3472a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group = org.leavesmc.leavesweight
2-
version = 1.0.1-SNAPSHOT
2+
version = 1.0.2-SNAPSHOT
33

44
org.gradle.caching = true
55
org.gradle.parallel = true

leavesweight-patcher/src/main/kotlin/io/papermc/paperweight/patcher/PaperweightPatcherExtension.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@ open class PaperweightPatcherExtension(project: Project, private val objects: Ob
8383
upstreams.registerFactory(PaperRepoPatcherUpstream::class.java) { name -> DefaultPaperRepoPatcherUpstream(name, objects, tasks, layout) }
8484
}
8585

86+
fun usePaperArchiveUpstream(refProvider: Provider<String>, versionProvider: Provider<String>, action: Action<PaperRepoPatcherUpstream>) {
87+
upstreams {
88+
register<PaperRepoPatcherUpstream>("paper") {
89+
url.set(github("PaperMC", "Paper-archive"))
90+
ref.set(refProvider)
91+
92+
action.execute(this)
93+
}
94+
}
95+
}
96+
8697
fun usePaperUpstream(refProvider: Provider<String>, action: Action<PaperRepoPatcherUpstream>) {
8798
upstreams {
8899
register<PaperRepoPatcherUpstream>("paper") {

0 commit comments

Comments
 (0)