Skip to content

Commit

Permalink
fix: HTTP module missing its buildscript
Browse files Browse the repository at this point in the history
  • Loading branch information
radstevee committed Nov 3, 2024
1 parent c7c75b6 commit e2ee87d
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions http/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
plugins {
java
`maven-publish`
}

fun prop(name: String) = project.rootProject.property(name) as String

group = prop("group")
version = prop("version")

repositories {
mavenCentral()
}

dependencies {
implementation(project(":api"))
compileOnly("io.netty:netty-all:4.1.97.Final")
compileOnly("org.slf4j:slf4j-api:1.7.30")
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
artifactId = project.name
from(components["java"])

pom {
name = "Inject (HTTP)"
description = "A library for making injecting into Netty easier."
url = "https://mcbrawls.net"

licenses {
license {
name = "MIT"
url = "https://opensource.org/licenses/MIT"
distribution = "repo"
}
}
}
}
}

repositories {
runCatching { // getenv throws if variable doesn't exist
val mavenUser = System.getenv("MAVEN_USERNAME_ANDANTE")
val mavenPass = System.getenv("MAVEN_PASSWORD_ANDANTE")

maven {
name = "Andante"
url = uri("https://maven.andante.dev/releases/")

credentials {
username = mavenUser
password = mavenPass
}
}
}
}
}

0 comments on commit e2ee87d

Please sign in to comment.