This repository has been archived by the owner on Jun 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
73 lines (62 loc) · 1.6 KB
/
build.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
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'java-gradle-plugin'
}
sourceCompatibility = 11
targetCompatibility = 11
group = 'de.geolykt.starloader'
archivesBaseName = 'obftools'
def baseVersion = '1.5.0'
repositories {
maven {
name 'geolykt'
url 'https://geolykt.de/maven'
}
mavenCentral()
}
dependencies {
implementation gradleApi()
implementation "org.ow2.asm:asm:9.2"
implementation "org.ow2.asm:asm-tree:9.2"
implementation "org.ow2.asm:asm-util:9.2"
implementation "org.ow2.asm:asm-commons:9.2"
// https://mvnrepository.com/artifact/org.jetbrains/annotations
implementation group: 'org.jetbrains', name: 'annotations', version: '23.0.0'
}
gradlePlugin {
plugins {
ObfToolsPlugin {
id = project.archivesBaseName
version = baseVersion
implementationClass = 'de.geolykt.starloader.obftools.ObfToolsPlugin'
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
plugin(MavenPublication) { publication ->
groupId project.group
artifactId project.archivesBaseName
version baseVersion
from components['java']
artifact sourcesJar
artifact javadocJar
}
}
repositories {
mavenLocal()
/*maven {
url = "/home/Geolykt/maven-alt/repo/"
}*/
}
}