Newer
Older
CrashLogBot / build.gradle
plugins {
	id 'application'
	id 'java'
  }
  
mainClassName = 'net.romvoid.crashbot.Bot'
group = 'net.romvoid.crashbot'
version = '3.0.0'

description = 'A Minecraft logs Discord Bot'

configurations {
    compile
}

repositories {
    maven {
        url "https://jitpack.io"
    }
    maven {
        url 'https://oss.sonatype.org/content/repositories/snapshots/'
    }
    jcenter()
    mavenCentral()
}
dependencies {
    compile group: 'org.igniterealtime.smack', name: 'smack-java8', version: '4.4.4'
    // Optional for XMPPTCPConnection
    compile group: 'org.igniterealtime.smack', name: 'smack-tcp', version: '4.4.4'
    // Optional for XMPP-IM (RFC 6121) support (Roster, Threaded Chats, …)
    compile group: 'org.igniterealtime.smack', name: 'smack-im', version: '4.4.4'
    // Optional for XMPP extensions support
//    compile 'org.igniterealtime.smack:smack-extensions:4.4.4'

    compile ('net.dv8tion:JDA:4.1.1_164'){
        transitive = true
        exclude module: 'opus-java'
    }
    //compile group: '', name: '', version: ''
	compile group: 'com.jagrosh', name: 'jda-utilities', version: '3.0.4'
	
	// https://mvnrepository.com/artifact/commons-io/commons-io
	compile group: 'commons-io', name: 'commons-io', version: '2.7'
	
	// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
    compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.11'
	
	// https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient
	compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.12'
	
	// https://mvnrepository.com/artifact/com.google.code.gson/gson
	compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6'

	// https://mvnrepository.com/artifact/org.json/json
	compile group: 'org.json', name: 'json', version: '20200518'

	// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
	compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30'

	// https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
	compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
	
	// https://bintray.com/minndevelopment/maven/discord-webhooks
	compile group: 'club.minnced', name: 'discord-webhooks', version: '0.3.1'
	
	// https://search.maven.org/artifact/com.github.enerccio/gson-utilities/1.1.0/jar
//    compile group: 'com.github.enerccio', name: 'gson-utilities', version: '1.1.0'
    
    // https://mvnrepository.com/artifact/org.jsoup/jsoup
    compile group: 'org.jsoup', name: 'jsoup', version: '1.13.1'
	
	// https://search.maven.org/artifact/org.junit.jupiter/junit-jupiter-engine
	testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.8.2'
    testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.8.2'
	compile(group: 'org.kohsuke', name: 'github-api', version: '1.95'){
		exclude module: 'okhttp'
    }
}
jar {

    configurations.compile.each { dep ->
        from(project.zipTree(dep)) {
           // exclude 'META-INF', 'META-INF/**'
        }
    }
    manifest {
        attributes(
                'Main-Class': mainClassName
        )
    }
}