Skip to content

Commit 0f10da8

Browse files
Merge pull request #157 from FxMorin/feature/gradle-plugin
Feature: Gradle Plugin
2 parents 47b9356 + c1f0a84 commit 0f10da8

11 files changed

Lines changed: 515 additions & 146 deletions

File tree

‎refactor-first-gradle-plugin/build.gradle‎

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,48 @@
11
plugins {
2+
id 'java'
23
id 'java-gradle-plugin'
34
id 'maven-publish'
4-
id 'com.gradle.plugin-publish' version '0.12.0'
5+
id 'com.gradleup.shadow' version '9.1.0'
6+
}
7+
8+
group = 'org.hjug.refactorfirst.plugin'
9+
version = '0.7.2-SNAPSHOT'
10+
11+
java {
12+
toolchain {
13+
languageVersion = JavaLanguageVersion.of(11)
14+
}
515
}
616

717
repositories {
18+
mavenLocal()
819
mavenCentral()
920
maven { url 'target/dependencies' }
10-
mavenLocal()
1121
}
1222

1323
dependencies {
1424
compileOnly gradleApi()
15-
// api "org.hjug.refactorfirst.graphdatagenerator:graph-data-generator:${version}"
25+
implementation 'org.hjug.refactorfirst.report:report:0.7.2-SNAPSHOT'
26+
}
27+
28+
jar {
29+
manifest {
30+
attributes 'Main-Class': 'org.hjug.gradlereport.RefactorFirstPlugin',
31+
'Implementation-Title': 'RefactorFirstPlugin',
32+
'Implementation-Version': version
33+
}
1634
}
1735

18-
pluginBundle {
19-
website = 'https://github.com/jimbethancourt/RefactorFirst'
20-
vcsUrl = 'https://github.com/jimbethancourt/RefactorFirst.git'
21-
tags = ['refactor', 'report']
36+
shadowJar {
37+
minimizeJar = true
2238
}
2339

2440
gradlePlugin {
25-
plugins {
26-
refactorFirstPlugin {
27-
id = 'org.hjug.refactor-first'
28-
displayName = 'RefactorFirst'
29-
description = 'Plugin that identifies God classes in a codebase and suggests which classes should be refactored first.'
41+
plugins {
42+
refactorFirstPlugin {
43+
id = 'org.hjug.refactor-first'
44+
displayName = 'RefactorFirst'
45+
description = 'Plugin that identifies God classes in a codebase and suggests which classes should be refactored first.'
3046
implementationClass = 'org.hjug.gradlereport.RefactorFirstPlugin'
3147
}
3248
}
-13.4 KB
Binary file not shown.
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
5-
zipStorePath=wrapper/dists
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)