Skip to content

Commit

Permalink
Feat/#107 Maven 배포 구성 및 의존성 추가 (#110)
Browse files Browse the repository at this point in the history
* config: maven publish용 gradle 설정 변경

- fatJar로 jar를 만들도록 수정했습니다.

* 🚀 Java sdk 0.1.1 추가
  • Loading branch information
miiiinju1 authored Aug 22, 2024
1 parent a56af0e commit b84f241
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
Binary file not shown.
33 changes: 33 additions & 0 deletions docs/info/logbat/logbat-sdk/0.1.1/logbat-sdk-0.1.1.pom
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- This module was also published with a richer model, Gradle metadata, -->
<!-- which should be used instead. Do not delete the following line which -->
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
<!-- that they should prefer consuming it instead. -->
<!-- do_not_remove: published-with-gradle-metadata -->
<modelVersion>4.0.0</modelVersion>
<groupId>info.logbat</groupId>
<artifactId>logbat-sdk</artifactId>
<version>0.1.1</version>
<dependencies>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.4.14</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.36</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.15.2</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>
25 changes: 24 additions & 1 deletion sdk/java/logbat-sdk/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
plugins {
id 'java'
id 'maven-publish'
}

group = 'info.logbat'
version = '1.0-SNAPSHOT'
version = '0.1.1'

repositories {
mavenCentral()
Expand All @@ -15,10 +16,27 @@ java {
}
}

publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
name = "local-repo"
url = project.layout.buildDirectory.dir("java").get().asFile.toURI()
}
}
}

dependencies {
// logback
implementation 'ch.qos.logback:logback-classic:1.4.14'

// slf4j
implementation 'org.slf4j:slf4j-api:1.7.36'

// objectMapper
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2'

Expand All @@ -43,4 +61,9 @@ jar {
'Implementation-Version': version
)
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE // 중복된 파일 무시

from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}

0 comments on commit b84f241

Please sign in to comment.