Skip to content

Commit

Permalink
refactor: Upgrade to Gradle 8.5, Java 17, and Clojurephant as the bui…
Browse files Browse the repository at this point in the history
…ld system
  • Loading branch information
ngrewe committed Feb 17, 2024
1 parent f42eed0 commit fc3e313
Show file tree
Hide file tree
Showing 5 changed files with 266 additions and 179 deletions.
63 changes: 31 additions & 32 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,42 +1,35 @@
buildscript {
repositories {
maven { url 'http://clojars.org/repo' }
mavenCentral()
}
dependencies {
classpath 'clojuresque:clojuresque:1.7.0'
}
plugins {
id 'java'
id "dev.clojurephant.clojure" version "0.8.0-beta.7"
id "com.github.johnrengelman.shadow" version "8.1.1"
}


group 'de.halbordnung.ontologies'
version '1.0.0-SNAPSHOT'

apply plugin: 'java'
apply plugin: 'clojure'

repositories {
mavenCentral()
maven { url 'http://clojars.org/repo' }
maven {
name 'Clojars'
url 'https://clojars.org/repo'
}
}

clojure.aotCompile = true

dependencies {
compile 'org.clojure:clojure:1.8.0'
compile 'uk.org.russet:tawny-owl:1.4.0'
compile 'danlentz:clj-uuid:0.1.6'
implementation 'org.clojure:clojure:1.11.1'
testRuntimeOnly 'dev.clojurephant:jovial:0.4.2'
devImplementation 'org.clojure:tools.namespace:1.3.0'
implementation 'uk.org.russet:tawny-owl:1.4.0'
implementation 'danlentz:clj-uuid:0.1.6'
}

sourceSets {
main {
clojure {
srcDirs = ["src/main/clojure", "src/main/resources"]
}
}
test {
clojure {
srcDirs = ["src/test/clojure", "src/main/resources"]
clojure {
builds {
main {
aotNamespaces.add('tqc.base')
aotNamespaces.add('tqc.core')
aotNamespaces.add('tqc.writer')
reflection = 'warn'
}
}
}
Expand All @@ -45,11 +38,17 @@ jar {
manifest.attributes("Main-Class": "tqc.writer")
}

uberjar {
shadowJar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(sourceSets["test"].output)
archiveBaseName.set("tqc")
mergeServiceFiles()
manifest {
attributes("Main-Class": "tqc.writer")
}
}

manifest.attributes("Main-Class": "tqc.writer")
tasks.withType(Test) {
useJUnitPlatform()
}

apply plugin: 'application'
mainClassName = "tqc.writer"
uberjar.enabled = true
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Sun Feb 28 13:12:31 CET 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-all.zip
Loading

0 comments on commit fc3e313

Please sign in to comment.