Skip to content

Commit

Permalink
Adding publication
Browse files Browse the repository at this point in the history
  • Loading branch information
benrady-aq committed Dec 11, 2024
1 parent 66be9c0 commit e1c6759
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Build

on: [push]

env:
VERSION: ${{ github.run_number }}

jobs:
test:
runs-on: ubuntu-22.04
Expand Down
22 changes: 21 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = 'com.aquatic'
version = '0.1.0'
version = System.getenv().getOrDefault("VERSION", "0")
description = 'Remote Write Client for Amazon Managed Prometheus'

repositories {
Expand All @@ -35,6 +35,26 @@ dependencies {
}

publishing {
publications {
maven(MavenPublication) {
from components.java

pom {
name.set("amp_exporter_java") // Replace with your project name
description.set("Amazon Managed Prometheus (AMP) Embedded Exporter for Java") // Replace with your project description
url.set("https://github.com/aquanauts/amp_exporter_java") // Replace with your project URL

licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
}
}
}


repositories {
maven {
name = "GitHubPackages"
Expand Down

0 comments on commit e1c6759

Please sign in to comment.