Merge pull request #12 from FairportRobotics/tyler-versioning
New versioning scheme
This commit is contained in:
commit
4869d2be10
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: wpilib/roborio-cross-ubuntu:2022-18.04
|
container: wpilib/roborio-cross-ubuntu:2024-22.04
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
@ -42,7 +42,7 @@ jobs:
|
||||||
- name: Publish to GitHub Packages
|
- name: Publish to GitHub Packages
|
||||||
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
|
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
|
||||||
with:
|
with:
|
||||||
arguments: publish
|
arguments: -Prelease publish
|
||||||
env:
|
env:
|
||||||
USERNAME: ${{ github.actor }}
|
USERNAME: ${{ github.actor }}
|
||||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -57,16 +57,20 @@ task cleanReleaseRepo(type: Delete) {
|
||||||
|
|
||||||
tasks.matching {it != cleanReleaseRepo}.all {it.dependsOn cleanReleaseRepo}
|
tasks.matching {it != cleanReleaseRepo}.all {it.dependsOn cleanReleaseRepo}
|
||||||
|
|
||||||
model {
|
task sourceJar(type: Jar) {
|
||||||
publishing {
|
from sourceSets.main.allJava
|
||||||
|
archiveClassifier = "sources"
|
||||||
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
java(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
|
artifact sourceJar
|
||||||
artifactId = "${baseArtifactId}-java"
|
artifactId = "${baseArtifactId}-java"
|
||||||
groupId artifactGroupId
|
groupId artifactGroupId
|
||||||
version pubVersion
|
version = project.hasProperty('release') ? pubVersion : pubVersion + "-SNAPSHOT"
|
||||||
|
|
||||||
from components.java
|
from components.java
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue