Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/#107 Maven 배포 구성 및 의존성 추가 #110

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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) }
}
}
Loading