Skip to content

Commit

Permalink
add: maven setting
Browse files Browse the repository at this point in the history
  • Loading branch information
tkhskt committed Apr 16, 2022
1 parent aaa45ab commit 2f10215
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/build.gradle

This file was deleted.

55 changes: 55 additions & 0 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
plugins {
`maven-publish`
id("kotlin")
}

dependencies {
testImplementation("junit:junit:4.13.2")
testImplementation("com.google.truth:truth:1.1.3")
}

afterEvaluate {
publishing {
publications {
create<MavenPublication>("library") {
from(components["java"])
group = LibraryInfo.group
groupId = LibraryInfo.group
version = LibraryInfo.version
artifactId = LibraryInfo.artifactId

pom {
name.set(LibraryInfo.artifactId)
description.set(LibraryInfo.description)
url.set(LibraryInfo.url)

scm {
connection.set("scm:git@github.com:tkhskt/glsl-tokenizer-kt.git")
developerConnection.set("scm:git@github.com:tkhskt/glsl-tokenizer-kt.git")
url.set(LibraryInfo.url)
}

developers {
developer {
id.set("tkhskt")
name.set("Keita Takahashi")
}
}
}
}
}
}
}

project(":lib") {
version = LibraryInfo.version
}

object LibraryInfo {
const val artifactId = "glsl-tokenizer-kt"
const val description = "GLSL tokenizer for Java/Kotlin"
const val displayName = "glsl-tokenizer-kt"
const val group = "com.tkhskt"
const val url = "https://github.com/tkhskt/glsl-tokenizer-kt"
const val version = "1.0.0"
}

0 comments on commit 2f10215

Please sign in to comment.