Skip to content

Commit b81f2ac

Browse files
committed
Update to move away from jcenter and use gradle kts
1 parent 5f18eda commit b81f2ac

9 files changed

Lines changed: 740 additions & 123 deletions

File tree

LICENSE

Lines changed: 660 additions & 19 deletions
Large diffs are not rendered by default.

build.gradle

Lines changed: 0 additions & 34 deletions
This file was deleted.

build.gradle.kts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
plugins {
2+
id("java")
3+
id("java-library")
4+
id("maven-publish")
5+
id("dev.minco.gradle.defaults-plugin") version "0.2.4"
6+
}
7+
8+
apply(from = "properties.gradle")
9+
10+
repositories {
11+
exclusiveContent {
12+
forRepository {
13+
maven { url = uri("https://maven.minco.dev/") }
14+
}
15+
filter {
16+
includeGroupByRegex("dev\\.minco.*")
17+
includeGroupByRegex("me\\.nallar.*")
18+
includeGroupByRegex("org\\.minimallycorrect.*")
19+
}
20+
}
21+
mavenCentral()
22+
}
23+
24+
minimallyCorrectDefaults {
25+
configureProject(project)
26+
}
27+
28+
dependencies {
29+
val lombok = "org.projectlombok:lombok:1.18.18"
30+
31+
testImplementation("junit:junit:4.12")
32+
implementation("org.ow2.asm:asm:9.1")
33+
implementation("org.ow2.asm:asm-util:9.1")
34+
implementation("org.ow2.asm:asm-tree:9.1")
35+
implementation("com.github.javaparser:javaparser-core:3.6.24")
36+
api("com.google.code.findbugs:jsr305:3.0.2")
37+
api("org.jetbrains:annotations:20.1.0")
38+
implementation(lombok)
39+
annotationProcessor(lombok)
40+
testAnnotationProcessor(lombok)
41+
}
42+
43+
tasks.withType<JavaCompile>().configureEach {
44+
options.compilerArgs.add("-Xlint:-options")
45+
}

docs/release-notes.md

Lines changed: 0 additions & 65 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

properties.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
group = "org.minimallycorrect.javatransformer"
2+
description = "Applies transformations to .java and .class files"
3+
4+
ext.githubOwner = 'MinimallyCorrect'
5+
ext.githubProject = 'JavaTransformer'
6+
ext.tags = ['java-transformation', 'java-source', 'java-bytecode', 'java']
7+
ext.licenses = ['AGPL']
8+
9+
ext.githubOwnerProject = "${ext.githubOwner}/${ext.githubProject}".toString()
10+
ext.githubUrl = "https://github.com/${ext.githubOwnerProject}".toString()
11+
ext.website = ext.githubUrl
12+
ext.vcsUrl = "${ext.githubUrl}.git".toString()
13+
14+
System.setProperty("gradle.publish.key", System.getenv("GRADLE_PUBLISH_KEY") ?: "")
15+
System.setProperty("gradle.publish.secret", System.getenv("GRADLE_PUBLISH_SECRET") ?: "")

settings.gradle

Lines changed: 0 additions & 2 deletions
This file was deleted.

settings.gradle.kts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
rootProject.name = "JavaTransformer"
2+
3+
pluginManagement {
4+
repositories {
5+
exclusiveContent {
6+
forRepository {
7+
maven(url = "https://maven.minco.dev/")
8+
}
9+
filter {
10+
includeGroupByRegex("dev\\.minco.*")
11+
includeGroupByRegex("me\\.nallar.*")
12+
includeGroupByRegex("org\\.minimallycorrect.*")
13+
}
14+
}
15+
mavenCentral()
16+
gradlePluginPortal()
17+
}
18+
}

version.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#Version of the produced binaries. This file is intended to be checked-in.
22
#It will be automatically bumped by release automation.
3-
version=1.8.17
4-
previousVersion=1.8.16
3+
version=1.9.x

0 commit comments

Comments
 (0)