-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename package to com.sainsburys.k2zpl, add GitHub package publish ac…
…tion.
- Loading branch information
1 parent
c16e74c
commit fcc597e
Showing
50 changed files
with
188 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Publish package to GitHub Packages | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- uses: gradle/gradle-build-action@v3 | ||
- name: Publish package | ||
run: ./gradlew publishMavenPublicationToGitHubPackagesRepository | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ plugins { | |
id("com.vanniktech.maven.publish") version "0.29.0" | ||
} | ||
|
||
group = "info.mking.k2zpl" | ||
group = "com.sainsburys.k2zpl" | ||
version = "0.1.0" | ||
|
||
repositories { | ||
|
@@ -26,20 +26,31 @@ tasks.test { | |
useJUnitPlatform() | ||
} | ||
|
||
|
||
publishing { | ||
repositories { | ||
maven("https://maven.pkg.github.com/sainsburys-tech/k2zpl") { | ||
name = "GitHubPackages" | ||
credentials { | ||
username = System.getenv("GITHUB_ACTOR") | ||
password = System.getenv("GITHUB_TOKEN") | ||
} | ||
} | ||
} | ||
} | ||
mavenPublishing { | ||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) | ||
signAllPublications() | ||
coordinates("info.mking.k2zpl", "k2zpl", "0.1.0") | ||
coordinates("com.sainsburys.k2zpl", "k2zpl", "0.1.0") | ||
pom { | ||
name.set("k2zpl") | ||
description.set("Kotlin DSL for ZPL (Zebra Programming Language)") | ||
inceptionYear.set("2024") | ||
url.set("https://github.com/itsmattking/k2zpl/") | ||
url.set("https://github.com/sainsburys-tech/k2zpl/") | ||
licenses { | ||
license { | ||
name.set("The Unlicense") | ||
url.set("https://unlicense.org") | ||
distribution.set("https://unlicense.org") | ||
name.set("MIT License") | ||
url.set("https://github.com/sainsburys-tech/k2zpl/blob/main/LICENSE") | ||
} | ||
} | ||
developers { | ||
|
@@ -50,9 +61,9 @@ mavenPublishing { | |
} | ||
} | ||
scm { | ||
url.set("https://github.com/itsmattking/k2zpl/") | ||
connection.set("scm:git:git://github.com/itsmattking/k2zpl.git") | ||
developerConnection.set("scm:git:ssh://[email protected]/itsmattking/k2zpl.git") | ||
url.set("https://github.com/sainsburys-tech/k2zpl/") | ||
connection.set("scm:git:git://github.com/sainsburys-tech/k2zpl.git") | ||
developerConnection.set("scm:git:ssh://[email protected]/sainsburys-tech/k2zpl.git") | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
src/main/kotlin/info/mking/k2zpl/K2ZPL.kt → ...main/kotlin/com/sainsburys/k2zpl/K2ZPL.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@file:Suppress("UNUSED") | ||
|
||
package info.mking.k2zpl | ||
package com.sainsburys.k2zpl | ||
|
||
import info.mking.k2zpl.builder.ZplBuilder | ||
import com.sainsburys.k2zpl.builder.ZplBuilder | ||
|
||
fun k2zpl(init: ZplBuilder.() -> Unit) = ZplBuilder().apply(init).build() |
4 changes: 2 additions & 2 deletions
4
...in/info/mking/k2zpl/builder/Extensions.kt → ...om/sainsburys/k2zpl/builder/Extensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
...in/info/mking/k2zpl/builder/ZplBuilder.kt → ...om/sainsburys/k2zpl/builder/ZplBuilder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...otlin/info/mking/k2zpl/command/BarCode.kt → ...n/com/sainsburys/k2zpl/command/BarCode.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...info/mking/k2zpl/command/CustomCommand.kt → ...sainsburys/k2zpl/command/CustomCommand.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package info.mking.k2zpl.command | ||
package com.sainsburys.k2zpl.command | ||
|
||
internal data class CustomCommand(override val command: CharSequence) : ZplCommand |
4 changes: 2 additions & 2 deletions
4
...lin/info/mking/k2zpl/command/EndFormat.kt → ...com/sainsburys/k2zpl/command/EndFormat.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...in/info/mking/k2zpl/command/FieldBlock.kt → ...om/sainsburys/k2zpl/command/FieldBlock.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...lin/info/mking/k2zpl/command/FieldData.kt → ...com/sainsburys/k2zpl/command/FieldData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...n/info/mking/k2zpl/command/FieldOrigin.kt → ...m/sainsburys/k2zpl/command/FieldOrigin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...nfo/mking/k2zpl/command/FieldSeparator.kt → ...ainsburys/k2zpl/command/FieldSeparator.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...n/kotlin/info/mking/k2zpl/command/Font.kt → ...tlin/com/sainsburys/k2zpl/command/Font.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...in/info/mking/k2zpl/command/GraphicBox.kt → ...om/sainsburys/k2zpl/command/GraphicBox.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
.../info/mking/k2zpl/command/GraphicField.kt → .../sainsburys/k2zpl/command/GraphicField.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...lin/info/mking/k2zpl/command/LabelHome.kt → ...com/sainsburys/k2zpl/command/LabelHome.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...n/info/mking/k2zpl/command/LabelLength.kt → ...m/sainsburys/k2zpl/command/LabelLength.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...lin/info/mking/k2zpl/command/MediaMode.kt → ...com/sainsburys/k2zpl/command/MediaMode.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...in/info/mking/k2zpl/command/PrintWidth.kt → ...om/sainsburys/k2zpl/command/PrintWidth.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...n/info/mking/k2zpl/command/StartFormat.kt → ...m/sainsburys/k2zpl/command/StartFormat.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...in/info/mking/k2zpl/command/ZplCommand.kt → ...om/sainsburys/k2zpl/command/ZplCommand.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...g/k2zpl/command/options/ZplBarcodeType.kt → ...s/k2zpl/command/options/ZplBarcodeType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...zpl/command/options/ZplCompressionType.kt → ...zpl/command/options/ZplCompressionType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ng/k2zpl/command/options/ZplDpiSetting.kt → ...ys/k2zpl/command/options/ZplDpiSetting.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...pl/command/options/ZplFieldOrientation.kt → ...pl/command/options/ZplFieldOrientation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...fo/mking/k2zpl/command/options/ZplFont.kt → ...insburys/k2zpl/command/options/ZplFont.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...k2zpl/command/options/ZplJustification.kt → ...k2zpl/command/options/ZplJustification.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ing/k2zpl/command/options/ZplLineColor.kt → ...rys/k2zpl/command/options/ZplLineColor.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ing/k2zpl/command/options/ZplMediaMode.kt → ...rys/k2zpl/command/options/ZplMediaMode.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...k2zpl/command/options/ZplTextAlignment.kt → ...k2zpl/command/options/ZplTextAlignment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...o/mking/k2zpl/command/options/ZplYesNo.kt → ...nsburys/k2zpl/command/options/ZplYesNo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.sainsburys.k2zpl | ||
|
||
import com.sainsburys.k2zpl.command.ZplCommand | ||
|
||
fun ZplCommand.testBuildString() = buildString { build(this) } |
Oops, something went wrong.