Skip to content

Commit

Permalink
update init
Browse files Browse the repository at this point in the history
  • Loading branch information
PanyaNaknoppakun committed Jul 20, 2024
1 parent 468fc0f commit dbba1cf
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 15 deletions.
15 changes: 9 additions & 6 deletions annotation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ dependencies {

publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])

groupId = "com.pls.hilt.extension"
artifactId = "auto-hilt"
version = "1.0.0"
publishing {
publications {
create<MavenPublication>("release") {
from(components["java"])
groupId = "com.pls"
artifactId = "annotation"
version = "1.0.0"
}
}
}
}
}
28 changes: 23 additions & 5 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
jdk:
- openjdk17
before_install:
- sdk install java 17.0.10-open
- sdk use java 17.0.10-open
name: Publish Library

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'

- name: Build and Publish
run: ./gradlew clean build publish
7 changes: 3 additions & 4 deletions processor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ dependencies {

publishing {
publications {
create<MavenPublication>("mavenJava") {
create<MavenPublication>("release") {
from(components["java"])

groupId = "com.pls.hilt.extension"
artifactId = "auto-hilt"
groupId = "com.pls"
artifactId = "processor"
version = "1.0.0"
}
}
Expand Down

0 comments on commit dbba1cf

Please sign in to comment.