Skip to content

Commit

Permalink
🐳 chore: Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Jan 31, 2024
1 parent 7f36bc9 commit 9e48794
Show file tree
Hide file tree
Showing 156 changed files with 9,212 additions and 9,161 deletions.
6 changes: 0 additions & 6 deletions .idea/kotlinScripting.xml

This file was deleted.

1 change: 1 addition & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

221 changes: 114 additions & 107 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,107 +1,114 @@
/*
* Copyright (c) 2023. caoccao.com Sam Cao
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import org.gradle.internal.os.OperatingSystem

object Config {
object Projects {
// https://mvnrepository.com/artifact/org.apache.commons/commons-collections4
const val COMMONS_COLLECTIONS4 = "org.apache.commons:commons-collections4:${Versions.COMMONS_COLLECTIONS4}"

// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
const val COMMONS_LANG3 = "org.apache.commons:commons-lang3:${Versions.COMMONS_LANG3}"

// https://mvnrepository.com/artifact/org.apache.commons/commons-text
const val COMMONS_TEXT = "org.apache.commons:commons-text:${Versions.COMMONS_TEXT}"

// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
const val JACKSON_DATABIND = "com.fasterxml.jackson.core:jackson-databind:${Versions.JACKSON}"

// https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310
const val JACKSON_DATATYPE_JSR310 = "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${Versions.JACKSON}"

const val JAVET = "com.caoccao.javet:javet:${Versions.JAVET}"
const val JAVET_MACOS = "com.caoccao.javet:javet-macos:${Versions.JAVET}"
const val JUNIT_BOM = "org.junit:junit-bom:${Versions.JUNIT}"
const val JUNIT_JUPITER = "org.junit.jupiter:junit-jupiter"

const val SLF4J_API = "org.slf4j:slf4j-api:${Versions.SLF4J}"
const val SLF4J_LOG4J12 = "org.slf4j:slf4j-log4j12:${Versions.SLF4J}"
}

object Versions {
const val COMMONS_COLLECTIONS4 = "4.4"
const val COMMONS_LANG3 = "3.12.0"
const val COMMONS_TEXT = "1.10.0"
const val JACKSON = "2.15.2"
const val JAVET = "2.2.1"
const val JUNIT = "5.9.1"
const val SLF4J = "2.0.7"
}
}

plugins {
id("java")
}

group = "com.caoccao.jaspiler"
version = "0.1.0"

repositories {
mavenCentral()
}

dependencies {
implementation(Config.Projects.COMMONS_COLLECTIONS4)
implementation(Config.Projects.COMMONS_LANG3)
implementation(Config.Projects.COMMONS_TEXT)
implementation(Config.Projects.JACKSON_DATABIND)
implementation(Config.Projects.JACKSON_DATATYPE_JSR310)
if (OperatingSystem.current().isMacOsX) {
implementation(Config.Projects.JAVET_MACOS)
} else {
implementation(Config.Projects.JAVET)
}
implementation(Config.Projects.SLF4J_API)
implementation(Config.Projects.SLF4J_LOG4J12)
testImplementation(platform(Config.Projects.JUNIT_BOM))
testImplementation(Config.Projects.JUNIT_JUPITER)
}

tasks.jar {
manifest {
attributes["Main-Class"] = "com.caoccao.jaspiler.JaspilerMain"
}
val dependencies = configurations
.runtimeClasspath
.get()
.map(::zipTree)
from(dependencies)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
exclude("META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA")
}

tasks.test {
useJUnitPlatform {
excludeTags("manual")
}
}

tasks.register<Test>("manualTest") {
useJUnitPlatform {
includeTags("manual")
}
}
/*
* Copyright (c) 2023-2024. caoccao.com Sam Cao
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import org.gradle.internal.os.OperatingSystem

object Config {
object Projects {
// https://mvnrepository.com/artifact/org.apache.commons/commons-collections4
const val COMMONS_COLLECTIONS4 = "org.apache.commons:commons-collections4:${Versions.COMMONS_COLLECTIONS4}"

// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
const val COMMONS_LANG3 = "org.apache.commons:commons-lang3:${Versions.COMMONS_LANG3}"

// https://mvnrepository.com/artifact/org.apache.commons/commons-text
const val COMMONS_TEXT = "org.apache.commons:commons-text:${Versions.COMMONS_TEXT}"

// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
const val JACKSON_DATABIND = "com.fasterxml.jackson.core:jackson-databind:${Versions.JACKSON}"

// https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310
const val JACKSON_DATATYPE_JSR310 = "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${Versions.JACKSON}"

const val JAVET = "com.caoccao.javet:javet:${Versions.JAVET}"
const val JAVET_MACOS = "com.caoccao.javet:javet-macos:${Versions.JAVET}"

// https://mvnrepository.com/artifact/org.junit/junit-bom
const val JUNIT_BOM = "org.junit:junit-bom:${Versions.JUNIT}"

// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter
const val JUNIT_JUPITER = "org.junit.jupiter:junit-jupiter"

// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
const val SLF4J_API = "org.slf4j:slf4j-api:${Versions.SLF4J}"

// https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12
const val SLF4J_LOG4J12 = "org.slf4j:slf4j-log4j12:${Versions.SLF4J}"
}

object Versions {
const val COMMONS_COLLECTIONS4 = "4.4"
const val COMMONS_LANG3 = "3.14.0"
const val COMMONS_TEXT = "1.11.0"
const val JACKSON = "2.16.1"
const val JAVET = "3.0.3"
const val JUNIT = "5.10.1"
const val SLF4J = "2.0.11"
}
}

plugins {
id("java")
}

group = "com.caoccao.jaspiler"
version = "0.1.0"

repositories {
mavenCentral()
}

dependencies {
implementation(Config.Projects.COMMONS_COLLECTIONS4)
implementation(Config.Projects.COMMONS_LANG3)
implementation(Config.Projects.COMMONS_TEXT)
implementation(Config.Projects.JACKSON_DATABIND)
implementation(Config.Projects.JACKSON_DATATYPE_JSR310)
if (OperatingSystem.current().isMacOsX) {
implementation(Config.Projects.JAVET_MACOS)
} else {
implementation(Config.Projects.JAVET)
}
implementation(Config.Projects.SLF4J_API)
implementation(Config.Projects.SLF4J_LOG4J12)
testImplementation(platform(Config.Projects.JUNIT_BOM))
testImplementation(Config.Projects.JUNIT_JUPITER)
}

tasks.jar {
manifest {
attributes["Main-Class"] = "com.caoccao.jaspiler.JaspilerMain"
}
val dependencies = configurations
.runtimeClasspath
.get()
.map(::zipTree)
from(dependencies)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
exclude("META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA")
}

tasks.test {
useJUnitPlatform {
excludeTags("manual")
}
}

tasks.register<Test>("manualTest") {
useJUnitPlatform {
includeTags("manual")
}
}
18 changes: 17 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
#
# Copyright (c) 2024. caoccao.com Sam Cao
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

#Fri Apr 14 10:45:06 CST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 9e48794

Please sign in to comment.