File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 4646 # 2. Add it as a repository secret (e.g., PACKAGES_TOKEN)
4747 # 3. Use that secret instead of GITHUB_TOKEN
4848 #
49- # The current version is hardcoded in lib/build.gradle.kts as "1.0.0"
50- # For dynamic versioning, consider:
51- # 1. Using the git tag (${GITHUB_REF#refs/tags/})
52- # 2. Reading version from gradle.properties
53- # 3. Using a gradle plugin like 'axion-release-plugin'
5449 - name : Publish to GitHub Packages
5550 env :
5651 USERNAME : ${{ github.actor }} # GitHub username of the user/bot triggering the workflow
Original file line number Diff line number Diff line change @@ -5,3 +5,6 @@ org.gradle.caching=true
55# (Note that some plugins may not yet be compatible with the configuration cache.)
66# https://docs.gradle.org/current/userguide/configuration_cache.html
77org.gradle.configuration-cache =true
8+
9+ # Library version for maven publishing
10+ version =1.0.0
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ publishing {
3636 register<MavenPublication >(" maven" ) {
3737 groupId = " hossain.dev"
3838 artifactId = " json5kt"
39- version = " 1.0.0"
39+ version = project.findProperty( " version " ) as String? ? : " 1.0.0"
4040
4141 from(components[" java" ])
4242 artifact(sourcesJar)
You can’t perform that action at this time.
0 commit comments