Skip to content

Commit 2b7b4c3

Browse files
authoredJul 20, 2021
Feature/create maven artifacts (#108)
* added publications to many modules * added workflow to release packages to maven repo * improved module artifact generation * minor fixes * do not publish an "all" lilb * trasnfertype has default contenttype * use snapshot version to enable replacing * added better logging, and a CollectionUtils.isAnyOf() method * extracted blobstore api into a separate common lib * fixed custom processor dockerfile * bumped snapshot version Co-authored-by: beardyinc <paul.latzelsperger@beardyinc.com>
1 parent b61b2db commit 2b7b4c3

File tree

68 files changed

+413
-55
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+413
-55
lines changed
 

‎.github/workflows/publish.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: Publish package to GitHub Packages
7+
on:
8+
release:
9+
types: [created]
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
packages: write
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/setup-java@v2
19+
with:
20+
java-version: '11'
21+
distribution: 'adopt'
22+
- name: Validate Gradle wrapper
23+
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
24+
- name: Publish package
25+
run: gradle publishAllPublicationToGitHubPackagesRepository
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎build.gradle.kts

+18-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
plugins {
77
`java-library`
8+
`maven-publish`
89
}
910

1011
repositories {
@@ -30,7 +31,10 @@ subprojects {
3031
}
3132

3233
allprojects {
34+
apply(plugin = "maven-publish")
3335
pluginManager.withPlugin("java-library") {
36+
group = "com.microsoft"
37+
version = "0.0.1-SNAPSHOT.1"
3438
dependencies {
3539
api("org.jetbrains:annotations:${jetBrainsAnnotationsVersion}")
3640
api("com.fasterxml.jackson.core:jackson-core:${jacksonVersion}")
@@ -45,6 +49,19 @@ allprojects {
4549

4650
}
4751

52+
publishing {
53+
repositories {
54+
maven {
55+
name = "GitHubPackages"
56+
url = uri("https://maven.pkg.github.com/microsoft/data-appliance-gx")
57+
credentials {
58+
username = System.getenv("GITHUB_ACTOR")
59+
password = System.getenv("GITHUB_TOKEN")
60+
}
61+
}
62+
}
63+
}
64+
4865
}
4966

5067
tasks.withType<Test> {
@@ -61,4 +78,4 @@ allprojects {
6178

6279
val test by tasks.getting(Test::class) {
6380
useJUnitPlatform()
64-
}
81+
}

0 commit comments

Comments
 (0)
Please sign in to comment.