Skip to content

Commit

Permalink
Updated build.gradle.kts (#5)
Browse files Browse the repository at this point in the history
* Updated build.gradle.kts

* Update build workflow
  • Loading branch information
Harsh3305 authored Mar 18, 2023
1 parent 3cee376 commit 34c6e2b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ on:
branches:
- 'master'

env:
USERNAME: ${{ secrets.OSSRH_USERNAME }}
TOKEN: ${{ secrets.OSSRH_TOKEN }}

jobs:
build:
name: Build
Expand Down
20 changes: 19 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,33 @@ plugins {
id("io.spring.dependency-management") version "1.1.0"
kotlin("jvm") version "1.7.22"
kotlin("plugin.spring") version "1.7.22"
`maven-publish`
}

group = "com.hrv.mart"
version = "0.0.1-SNAPSHOT"
version = "0.0.1"
java.sourceCompatibility = JavaVersion.VERSION_17

repositories {
mavenCentral()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/hrv-mart/api-call")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-webflux")
Expand Down

0 comments on commit 34c6e2b

Please sign in to comment.