diff options
author | terminaldweller <thabogre@gmail.com> | 2022-03-17 15:37:17 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-03-17 15:37:17 +0000 |
commit | 70aa3558759921f7ec44adffec081ba1e9d7fb6a (patch) | |
tree | eef7dd6dee34d26ac10f64076cd9f7df25d77f88 /build.gradle.kts | |
parent | daily commit.wip (diff) | |
download | mdrtl-70aa3558759921f7ec44adffec081ba1e9d7fb6a.tar.gz mdrtl-70aa3558759921f7ec44adffec081ba1e9d7fb6a.zip |
daily commit.wip
Diffstat (limited to '')
-rw-r--r-- | build.gradle.kts | 58 |
1 files changed, 42 insertions, 16 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 30630b9..3712725 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,10 +1,10 @@ // https://docs.gradle.org/current/userguide/building_java_projects.html plugins { `java-library` - // application id("org.springframework.boot") version "2.6.4" id("io.spring.dependency-management") version "1.0.11.RELEASE" id("java-library") + // id("com.sourcegraph.gradle") version "1.3" } repositories { @@ -12,31 +12,57 @@ repositories { } dependencies { - implementation("org.springframework.boot:spring-boot-starter-data-jdbc") - implementation("org.springframework.boot:spring-boot-starter-data-jpa") - implementation("org.springframework.boot:spring-boot-starter-web") + implementation("org.springframework.boot:spring-boot-starter-data-jdbc:2.6.4") + implementation("org.springframework.boot:spring-boot-starter-data-jdbc:2.6.4:sources") + api("org.springframework.boot:spring-boot-starter-data-jdbc:2.6.4:javadoc") + implementation("org.springframework.boot:spring-boot-starter-data-jpa:2.6.4") + implementation("org.springframework.boot:spring-boot-starter-data-jpa:2.6.4:sources") + api("org.springframework.boot:spring-boot-starter-data-jpa:2.6.4:javadoc") + implementation("org.springframework.boot:spring-boot-starter-web:2.6.4") + implementation("org.springframework.boot:spring-boot-starter-web:2.6.4:sources") + api("org.springframework.boot:spring-boot-starter-web:2.6.4:javadoc") + implementation("org.commonmark:commonmark:0.18.2") + implementation("org.commonmark:commonmark:0.18.2:sources") + implementation("org.commonmark:commonmark:0.18.2:javadoc") + implementation("org.commonmark:commonmark-ext-gfm-tables:0.18.2") + implementation("org.commonmark:commonmark-ext-gfm-strikethrough:0.18.2") + implementation("org.commonmark:commonmark-ext-task-list-items:0.18.2") + implementation("org.commonmark:commonmark-ext-ins:0.18.2") runtimeOnly("org.postgresql:postgresql") testImplementation("org.hibernate.javax.persistence:hibernate-jpa-2.1-api") } -// tasks.create("FatJar", Jar::class) { -// description = "makes a fatjar" -// group = "build" -// manifest.attributes["Main-Class"] = "com.terminaldweller.MainApplication" -// duplicatesStrategy = DuplicatesStrategy.EXCLUDE -// val dependencies = configurations.runtimeClasspath.get().map(::zipTree) -// from(dependencies) -// with(tasks.jar.get()) +// task copyJavadocsAndSources { +// inputs.files configurations.runtime +// outputs.dir "${buildDir}/download" +// doLast { +// def componentIds = configurations.runtime.incoming.resolutionResult.allDependencies.collect { it.selected.id } +// ArtifactResolutionResult result = dependencies.createArtifactResolutionQuery() +// .forComponents(componentIds) +// .withArtifacts(JvmLibrary, SourcesArtifact, JavadocArtifact) +// .execute() +// def sourceArtifacts = [] +// result.resolvedComponents.each { ComponentArtifactsResult component -> +// Set<ArtifactResult> sources = component.getArtifacts(SourcesArtifact) +// println "Found ${sources.size()} sources for ${component.id}" +// sources.each { ArtifactResult ar -> +// if (ar instanceof ResolvedArtifactResult) { +// sourceArtifacts << ar.file +// } +// } +// } + +// copy { +// from sourceArtifacts +// into "${buildDir}/download" +// } +// } // } springBoot { mainClass.set("com.terminaldweller.MainApplication") } -// application { -// mainClass.set("com.terminaldweller.MainApplication") -// } - sourceSets { main { java { |