Skip to content

Commit

Permalink
migrate to maven central. (#122)
Browse files Browse the repository at this point in the history
* Update common.kt

* rename.
  • Loading branch information
portlek authored Jun 23, 2024
1 parent 16d3985 commit 05ac0a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import net.infumia.gradle.applyProtobuf
import net.infumia.gradle.protobuf
import net.infumia.gradle.publish
import net.infumia.gradle.spotless

plugins { java }

publish()

applyProtobuf()
protobuf()

spotless()

Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/net/infumia/gradle/common.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ fun Project.applyCommon(javaVersion: Int = 8, sources: Boolean = true, javadoc:
dependsOn("classes")
archiveClassifier.set("sources")
from(sourceSets["main"].allSource)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
}

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/net/infumia/gradle/protobuf.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import org.gradle.api.plugins.JavaPluginExtension
import org.gradle.api.tasks.javadoc.Javadoc
import org.gradle.kotlin.dsl.*

fun Project.applyProtobuf() {
fun Project.protobuf() {
val libs = project.rootProject.the<LibrariesForLibs>()

apply<ProtobufPlugin>()
Expand Down

0 comments on commit 05ac0a2

Please sign in to comment.