-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
fernflower.gradle
77 lines (63 loc) · 1.82 KB
/
fernflower.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'eclipse'
apply plugin: 'net.minecraftforge.gradleutils'
archivesBaseName = 'forgeflower'
sourceSets {
main.java.srcDirs = ['src']
test.java.srcDirs = ['test']
}
repositories {
mavenCentral()
}
dependencies {
implementation(libs.null)
testImplementation(libs.junit)
testImplementation(libs.gson)
testImplementation(libs.hamcrest)
testImplementation(libs.assertj)
}
// Default all standard Java compile tasks to Java 17
java.toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
tasks.withType(JavaCompile) {
options.deprecation = true
}
eclipse {
project {
name 'ForgeFlower'
}
}
tasks.named('jar', Jar).configure {
manifest {
attributes('Main-Class': 'org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler')
}
}
java.withSourcesJar()
changelog {
from('2.0.605')
}
tasks.named('createChangelog').configure {
gitDirectory = rootProject.layout.projectDirectory.dir('.git')
outputFile = rootProject.layout.buildDirectory.file('changelog.txt')
}
publishing {
publications.register('mavenJava', MavenPublication) {
from components.java
pom {
groupId = project.group
version = project.version
artifactId = project.archivesBaseName
name = project.archivesBaseName
packaging = 'jar'
description = 'Fernflower from https://github.com/JetBrains/intellij-community as standalone library, With Forges Modifications'
url = 'https://github.com/MinecraftForge/ForgeFlower'
gradleutils.pom.setGitHubDetails(pom, 'ForgeFlower')
license gradleutils.pom.licenses.Apache2_0
}
}
repositories {
maven gradleutils.publishingForgeMaven
}
}