You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
|
|
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'application'
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
mainClassName = "GitComInf"
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
dependencies {
|
|
implementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '5.13.0.202109080827-r'
|
|
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.33' // to prevent warning msg about missing binding
|
|
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.33'
|
|
}
|
|
/*
|
|
jar {
|
|
manifest {
|
|
attributes(
|
|
"Main-Class": mainClassName ,
|
|
"Class-Path": configurations.runtimeClasspath.collect { it.name }.join(' ')
|
|
)
|
|
}
|
|
}
|
|
*/
|
|
// copy fat-jar to deploy location ..
|
|
task installJar (type:Copy, group: 'distribution') {
|
|
description 'Install jar in libbuild directory'
|
|
from 'build/libs'
|
|
include 'GitComInf-all.jar'
|
|
into project.projectDir.getParent()
|
|
}
|
|
|