Skip to content

Commit

Permalink
Trying to publish via Github Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
benrady-aq committed Dec 11, 2024
1 parent 75055c5 commit 66be9c0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ reformat: ## Reformat all the code (as per pre-commit)
./gradlew spotlessApply

publish: test
# ./gradlew publish
./gradlew publish
15 changes: 14 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ plugins {
id 'java'
id 'com.google.protobuf' version '0.9.4'
id 'com.diffplug.spotless' version "6.22.0"
id 'maven-publish'
}

group = 'com.aquatic'
version = '1.0.0'
version = '0.1.0'
description = 'Remote Write Client for Amazon Managed Prometheus'

repositories {
Expand All @@ -33,6 +34,18 @@ dependencies {
testImplementation("org.hamcrest:hamcrest:2.2")
}

publishing {
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/aquanauts/amp_exporter_java"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}

test {
reports.html.getRequired().set(false)
Expand Down

0 comments on commit 66be9c0

Please sign in to comment.