buildscript {
    repositories {
        maven { url = 'https://files.minecraftforge.net/maven' }
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
    }
}
apply plugin: 'net.minecraftforge.gradle'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.

version = '1.0'
group = 'me.hammerle.km'
archivesBaseName = 'km'

minecraft {
    mappings channel: 'snapshot', version: '20200214-1.15.1'

    runs {
        client {
            workingDirectory project.file('runClient')
            property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
            property 'forge.logging.console.level', 'info'
            args '--username', 'kajetanjohannes'
        }

        server {
            workingDirectory project.file('runServer')
            property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
            property 'forge.logging.console.level', 'info'
        }
    }
}

dependencies {
    minecraft 'net.minecraftforge:forge:1.15.2-31.1.0'
    
    compile 'mysql:mysql-connector-java:5.1.42'
    
    compile files('./libs/SnuviScriptRecoded.jar')
    compile files('./libs/kcm-1.0.jar')
}
