forked from YuvDwi/Steve
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
114 lines (92 loc) · 2.93 KB
/
build.gradle
File metadata and controls
114 lines (92 loc) · 2.93 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
plugins {
id 'eclipse'
id 'idea'
id 'maven-publish'
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
}
version = '1.0.6'
group = 'com.steve.ai'
base {
archivesName = 'steve-ai-mod'
}
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
minecraft {
mappings channel: 'official', version: '1.20.1'
runs {
client {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
mods {
steve {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
mods {
steve {
source sourceSets.main
}
}
}
}
}
sourceSets.main.resources { srcDir 'src/generated/resources' }
repositories {
mavenCentral()
}
dependencies {
minecraft 'net.minecraftforge:forge:1.20.1-47.2.0'
// HTTP client - Using Java 11+ built-in HttpClient (no external dependencies needed!)
// JSON parsing - Minecraft already includes Gson
// GraalVM for JavaScript code execution engine
implementation 'org.graalvm.polyglot:polyglot:23.1.0'
implementation 'org.graalvm.polyglot:js:23.1.0'
// Resilience4j for fault tolerance (circuit breaker, retry, rate limiting, bulkhead)
implementation 'io.github.resilience4j:resilience4j-circuitbreaker:2.1.0'
implementation 'io.github.resilience4j:resilience4j-retry:2.1.0'
implementation 'io.github.resilience4j:resilience4j-ratelimiter:2.1.0'
implementation 'io.github.resilience4j:resilience4j-bulkhead:2.1.0'
// Caffeine cache for LLM response caching
implementation 'com.github.ben-manes.caffeine:caffeine:3.1.8'
// Apache Commons for SHA-256 hashing (cache keys)
implementation 'commons-codec:commons-codec:1.16.0'
// JUnit 5 for testing
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.3'
}
test {
useJUnitPlatform()
}
tasks.named('jar', Jar).configure {
manifest {
attributes([
'Specification-Title': 'Steve AI Mod',
'Specification-Vendor': 'Steve AI',
'Specification-Version': '1',
'Implementation-Title': project.name,
'Implementation-Version': project.jar.archiveVersion,
'Implementation-Vendor': 'Steve AI'
])
}
finalizedBy 'reobfJar'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
}
}
repositories {
maven {
url "file://${project.projectDir}/mcmodsrepo"
}
}
}