Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
Basic Stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Window5000 committed Aug 3, 2023
1 parent 677a879 commit 51e3173
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 20 deletions.
42 changes: 30 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,46 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version "1.9.0"
application
`maven-publish`
id("org.jetbrains.dokka") version "1.8.20"
`java-library`
}

group = "org.hypejet"
version = "1.0-SNAPSHOT"

repositories {
mavenCentral()
}

dependencies {
testImplementation(kotlin("test"))

}

tasks.test {
useJUnitPlatform()
kotlin.jvmToolchain(17)

val javadocJar by tasks.register<Jar>("dokkaHtmlJar") { // dokkaJavadocJar could also be used but this looks way better, see https://imgur.com/a/6hFaIsl
group = "documentation"
dependsOn(tasks.dokkaHtml)
from(tasks.dokkaHtml.flatMap { it.outputDirectory })
archiveClassifier.set("javadoc")
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
val sourcesJar by tasks.register<Jar>("sourcesJar") {
archiveClassifier.set("sources")
from(sourceSets["main"].allSource)
}

application {
mainClass.set("MainKt")
publishing {
repositories.maven("https://repo.hypejet.org/private") {
credentials {
username = System.getenv("HYPEJET_MAVEN_USERNAME")?: System.getenv("MAVEN_USERNAME")
password = System.getenv("HYPEJET_MAVEN_PASSWORD")?: System.getenv("MAVEN_PASSWORD")
authentication {
create<BasicAuthentication>("basic")
}
}
}

publications.create<MavenPublication>("maven") {
artifact(javadocJar)
artifact(sourcesJar)
from(components["kotlin"])
}
}
21 changes: 20 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@

rootProject.name = "Bakkastom"

dependencyResolutionManagement {
repositories {
mavenCentral()
mavenLocal()

maven("https://jitpack.io")
maven("https://storehouse.okaeri.eu/repository/maven-public")
maven {
name = "hypejet"
url = uri("https://repo.hypejet.org/private")
credentials {
username = System.getenv("HYPEJET_MAVEN_USERNAME")?: System.getenv("MAVEN_USERNAME")
password = System.getenv("HYPEJET_MAVEN_PASSWORD")?: System.getenv("MAVEN_PASSWORD")
}
authentication {
create<BasicAuthentication>("basic")
}
}
}
}
7 changes: 0 additions & 7 deletions src/main/kotlin/Main.kt

This file was deleted.

5 changes: 5 additions & 0 deletions src/main/kotlin/org/hypejet/bakka/AmongUsServer.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package org.hypejet.bakka

class AmongUsServer {

}

0 comments on commit 51e3173

Please sign in to comment.