Skip to content

Commit

Permalink
Merge pull request #113 from IZIVIA/chore/#112-do-not-publish-useless…
Browse files Browse the repository at this point in the history
…-libs

chore(gradle) #112: Removed commons module, duplicated gradle declarations, and mvn publishing from annotation-processor
  • Loading branch information
lilgallon authored Jul 22, 2024
2 parents 7dc2c08 + b53820c commit 0e681d1
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 62 deletions.
34 changes: 0 additions & 34 deletions annotation-processor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,8 @@ plugins {
kotlin("jvm")
}

repositories {
mavenCentral()
}

java {
withJavadocJar()
withSourcesJar()
}

publishing {
publications {
named<MavenPublication>("maven") {
artifactId = "ocpi-annotation-processor"
groupId = "com.izivia"

from(components["java"])

pom {
name.set("OCPI Annotation processor")
artifactId = "ocpi-annotation-processor"
description.set(
"This module processes annotations during compilation time in order to generate some code " +
"(partial representation, etc ...)"
)
}
}
}
}

dependencies {
implementation("com.squareup:kotlinpoet:${Versions.kotlinPoet}")
implementation("com.squareup:kotlinpoet-ksp:${Versions.kotlinPoet}")
implementation("com.google.devtools.ksp:symbol-processing-api:${Versions.ksp}")
implementation(project(":common"))
}

tasks.build {
dependsOn(tasks.publishToMavenLocal)
}
20 changes: 0 additions & 20 deletions common/build.gradle.kts

This file was deleted.

3 changes: 1 addition & 2 deletions ocpi-toolkit-2.2.1/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
plugins {
id("java-library")
id("maven-publish")
id("com.google.devtools.ksp")
}

dependencies {
implementation(project(":common"))
implementation(project(":annotation-processor"))
ksp(project(":annotation-processor"))
api(project(":transport"))

Expand Down
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ pluginManagement {
}

include(
"common",
"annotation-processor",
"transport",
"ocpi-toolkit-2.2.1"
Expand Down
5 changes: 0 additions & 5 deletions transport/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
plugins {
kotlin("jvm")
id("maven-publish")
}

java {
withJavadocJar()
withSourcesJar()
Expand Down

0 comments on commit 0e681d1

Please sign in to comment.