You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

45 lines
718 B

  1. import java.net.URI
  2. plugins {
  3. `java-library`
  4. `maven-publish`
  5. }
  6. repositories {
  7. jcenter()
  8. mavenCentral()
  9. }
  10. publishing {
  11. publications {
  12. register("mavenJava", MavenPublication::class) {
  13. from(components["java"])
  14. }
  15. }
  16. }
  17. dependencies {
  18. testImplementation("org.junit.jupiter:junit-jupiter-api:5.5.1")
  19. testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.1")
  20. }
  21. java {
  22. withJavadocJar()
  23. withSourcesJar()
  24. }
  25. group= "tobi"
  26. version = "0.0.5"
  27. sourceSets["main"].java {
  28. srcDir("src/main")
  29. }
  30. sourceSets["test"].java {
  31. srcDir("src/test")
  32. }
  33. val test by tasks.getting(Test::class) {
  34. useJUnitPlatform()
  35. testLogging.showStandardStreams=true
  36. }