Skip to content

Commit

Permalink
Dependencies centralisation 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefterv committed Dec 15, 2024
1 parent 08cb336 commit b4afc51
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 23 deletions.
14 changes: 7 additions & 7 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import com.vanniktech.maven.publish.SonatypeHost

plugins {
id("java")
id("com.vanniktech.maven.publish") version "0.30.0"
alias(libs.plugins.mavenPublish)
}

group = "org.processing"
Expand All @@ -25,10 +25,10 @@ sourceSets{
}

dependencies {
implementation("org.jogamp.gluegen:gluegen-rt-main:2.5.0")
implementation("org.jogamp.jogl:jogl-all-main:2.5.0")
implementation(libs.jogl)
implementation(libs.gluegen)

testImplementation("junit:junit:4.13.2")
testImplementation(libs.junit)
}

mavenPublishing{
Expand Down Expand Up @@ -56,9 +56,9 @@ mavenPublishing{
}
}
scm{
url.set("https://github.com/processing/processing4-carbon-aug-19")
connection.set("scm:git:git://github.com/processing/processing4-carbon-aug-19.git")
developerConnection.set("scm:git:ssh://[email protected]/processing/processing4-carbon-aug-19.git")
url.set("https://github.com/processing/processing4")
connection.set("scm:git:git://github.com/processing/processing4.git")
developerConnection.set("scm:git:ssh://[email protected]/processing/processing4.git")
}
}
}
Expand Down
15 changes: 14 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
[versions]
kotlin = "2.0.20"
compose-plugin = "1.7.1"
jogl = "2.5.0"

[libraries]
jogl = { module = "org.jogamp.jogl:jogl-all-main", version.ref = "jogl" }
gluegen = { module = "org.jogamp.gluegen:gluegen-rt-main", version.ref = "jogl" }
flatlaf = { module = "com.formdev:flatlaf", version = "3.4.1" }
jna = { module = "net.java.dev.jna:jna", version = "5.12.1" }
jnaplatform = { module = "net.java.dev.jna:jna-platform", version = "5.12.1" }
compottie = { module = "io.github.alexzhirkevich:compottie", version = "2.0.0-rc02" }
kaml = { module = "com.charleskorn.kaml:kaml", version = "0.65.0" }
junit = { module = "junit:junit", version = "4.13.2" }
mockito = { module = "org.mockito:mockito-core", version = "4.11.0" }
antlr = { module = "org.antlr:antlr4", version = "4.7.2" }
eclipseJDT = { module = "org.eclipse.jdt:org.eclipse.jdt.core", version = "3.40.0" }
classpathExplorer = { module = "com.google.classpath-explorer:classpath-explorer", version = "1.0" }
netbeansSwing = { module = "org.netbeans.api:org-netbeans-swing-outline", version = "RELEASE210" }
ant = { module = "org.apache.ant:ant", version = "1.10.14" }
lsp4j = { module = "org.eclipse.lsp4j:org.eclipse.lsp4j", version = "0.22.0" }
jsoup = { module = "org.jsoup:jsoup", version = "1.17.2" }

[plugins]
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
download = { id = "de.undercouch.download", version = "5.6.0" }
download = { id = "de.undercouch.download", version = "5.6.0" }
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.30.0" }
20 changes: 10 additions & 10 deletions java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ dependencies{
implementation(project(":core"))
implementation(project(":java:preprocessor"))

implementation("org.eclipse.jdt:org.eclipse.jdt.core:3.37.0")
implementation("com.google.classpath-explorer:classpath-explorer:1.0")
implementation("org.netbeans.api:org-netbeans-swing-outline:RELEASE210")
implementation("org.apache.ant:ant:1.10.14")
implementation("org.eclipse.lsp4j:org.eclipse.lsp4j:0.22.0")
implementation("org.jsoup:jsoup:1.17.2")
implementation("org.antlr:antlr4:4.7.2")

testImplementation("junit:junit:4.13.2")
testImplementation("org.mockito:mockito-core:4.11.0")
implementation(libs.eclipseJDT)
implementation(libs.classpathExplorer)
implementation(libs.netbeansSwing)
implementation(libs.ant)
implementation(libs.lsp4j)
implementation(libs.jsoup)
implementation(libs.antlr)

testImplementation(libs.junit)
testImplementation(libs.mockito)
}

tasks.compileJava{
Expand Down
9 changes: 4 additions & 5 deletions java/preprocessor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import com.vanniktech.maven.publish.SonatypeHost

plugins{
id("java")
id("com.vanniktech.maven.publish") version "0.30.0"
alias(libs.plugins.mavenPublish)
}

group = "org.processing"
version = "4.3.1"

repositories{
mavenCentral()
Expand All @@ -25,10 +24,10 @@ sourceSets{
}

dependencies{
implementation("org.antlr:antlr4:4.7.2")
implementation("org.eclipse.jdt:org.eclipse.jdt.core:3.40.0")
implementation(libs.antlr)
implementation(libs.eclipseJDT)

implementation("org.processing:core:${version}")
implementation(project(":core"))
}

mavenPublishing{
Expand Down

0 comments on commit b4afc51

Please sign in to comment.