summaryrefslogtreecommitdiff
path: root/build.gradle
blob: 91837cdb9c64d65bb3864734ba213c41b1b7ce9c (plain)
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
//file:noinspection GradlePackageUpdate
plugins {
    id 'com.github.johnrengelman.shadow' version '6.1.0'
    id "net.minecraftforge.gradle.forge" version "ddb1eb0"
    id "java"
    id "maven-publish"
}

version = "1.0.0"
group = "cc.polyfrost"
archivesBaseName = rootProject.name.toLowerCase(Locale.ENGLISH)

sourceCompatibility = targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'

minecraft {
    version = "1.8.9-11.15.1.2318-1.8.9"
    runDir = "run"
    mappings = "stable_22"
    makeObfSourceJar = false
}

configurations {
    include
    implementation.extendsFrom(include)
}

repositories {
    mavenCentral()
    maven { url "https://repo.woverflow.cc/" }
    maven { url "https://libraries.minecraft.net/" }
}

dependencies {
    compileOnly ("com.google.code.gson:gson:2.2.3")
    compileOnly ("org.apache.httpcomponents:httpclient:4.3.3")
    include ('io.sentry:sentry:5.6.3')
}

shadowJar {
    archiveClassifier.set('')
    configurations = [project.configurations.include]
    duplicatesStrategy DuplicatesStrategy.EXCLUDE
}