Skip to content

Releases: zapzombies/gradle-convention-plugins

Version 1.1.1

17 Oct 09:20
3e7b564
Compare
Choose a tag to compare

Add Javadocs 💯

Quickswitch

12 Sep 19:23
08c4f85
Compare
Choose a tag to compare

Version 1.1.0 bring some new exciting features

New and more quickly switch between remote and local version

Use it by: adding qs() or qs {} as a argument after dependency notation

  • qs.useLocal use local for all dependencies
  • qs.useLocal=a,b,c use local for all dependencies a, b, c
  • qs.localVer=x.y.z-SNAPSHOT to set a custom local version for all dependencies
  • qs.localVer.a=x.y.z-SNAPSHOT to set a custom local version for dependency a, overriding ^
  • qs("name") to set a new name for dependency so you don't have to use it full name
    some examples:
bukkitPlugin("org.junit.jupiter:arena-api:1.0.0", qs())
bukkitPlugin("org.junit.jupiter:arena-api:1.0.0", qs("aa"))
bukkitPlugin("org.junit.jupiter:arena-api:1.0.0", qs {
	// Normal grade config
	isTransitive = true
})

Command
gradle -Pqs.useLocal=aa,arena-api -Pqs.localVer=0.0.1 build

gradle.properties

qs.useLocal=aa,arena-api
qs.localVer=0.0.1

Subproject dependencies will automatically inherit version from their parent if not specified

Example (Assuming root is the parent of sub

// root build.gradle.kts
bukkitPlugin("org.junit.jupiter:arena-api:1.0.0", qs())

// sub build.gradle.kts
bukkitPlugin("org.junit.jupiter:arena-api", qs())

Remove older version of bukkitPlugin configuration

Older implementation deletes more than just the jar

v1.0.0

03 Sep 18:38
Compare
Choose a tag to compare
Initial Commit