Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 39 additions & 38 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,33 @@
* GNU General Public License for more details.
*/

apply plugin: 'idea'
buildscript {
repositories {
mavenCentral()
maven {
url 'https://maven.ej-technologies.com/repository'
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath group: 'de.undercouch', name: 'gradle-download-task', version: '4.1.1'
classpath group: 'com.install4j', name: 'install4j-gradle', version: '8.0.7'
}
}

plugins {
id "idea"
}

task wrapper(type: Wrapper) {
gradleVersion = '3.5'
wrapper {
gradleVersion = '6.7'
}

idea {
project {
languageLevel = '1.8'
languageLevel = '15'
}
}

Expand All @@ -36,7 +54,7 @@ allprojects {
task gitVersion { task ->
def gitVersion = 'unknown'
def branch = 'develop'
def File rootDir = project.rootDir
File rootDir = project.rootDir
for (def gitCmd in ['git', 'git.cmd']) {
try {
def procBranch = "$gitCmd rev-parse --abbrev-ref HEAD".execute(null as List, rootDir)
Expand All @@ -55,7 +73,7 @@ allprojects {
}
}

def String mainVersion
String mainVersion
def indexOfSeparator = gitVersion.indexOf('-')
if (indexOfSeparator == -1) {
mainVersion = gitVersion
Expand Down Expand Up @@ -86,35 +104,25 @@ allprojects {
repositories {
mavenCentral()
maven {
url 'http://illarion.org/media/java/maven'
url 'https://illarion.org/media/java/maven'
}
maven {
url 'http://oss.sonatype.org/content/repositories/releases'
url 'https://oss.sonatype.org/content/repositories/releases'
}
}
}

buildscript {
repositories {
mavenCentral()
maven {
url 'http://maven.ej-technologies.com/repository'
url 'https://dl.bintray.com/flowtick/jgraphx'
}
}
dependencies {
classpath group: 'net.sf.proguard', name: 'proguard-gradle', version: '5.2.1'
classpath group: 'de.undercouch', name: 'gradle-download-task', version: '2.1.0'
classpath group: 'com.install4j', name: 'install4j-gradle', version: '6.0.4'
}
}

subprojects {
group = 'org.illarion'

plugins.withType(JavaPlugin) {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_15
targetCompatibility = JavaVersion.VERSION_15

plugins.withType(JavaPlugin) {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
Expand All @@ -136,30 +144,23 @@ subprojects {
test.runtimeClasspath += configurations.provided
}
dependencies {
testCompile group: 'org.testng', name: 'testng', version: '6.9.10'
testCompile group: 'org.easymock', name: 'easymock', version: '3.4'
testCompile group: 'org.powermock', name: 'powermock-module-testng', version: '1.6.4'
testCompile group: 'org.powermock', name: 'powermock-api-easymock', version: '1.6.4'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
compile group: 'org.jetbrains', name: 'annotations', version: '15.0'
compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1'
testImplementation group: 'org.testng', name: 'testng', version: '7.3.0'
testImplementation group: 'org.easymock', name: 'easymock', version: '4.2'
testImplementation group: 'org.powermock', name: 'powermock-module-testng', version: '2.0.9'
testImplementation group: 'org.powermock', name: 'powermock-api-easymock', version: '2.0.9'
testImplementation group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
implementation group: 'org.jetbrains', name: 'annotations', version: '20.1.0'
}
}

apply plugin: 'idea'
apply plugin: 'findbugs'
apply plugin: 'pmd'
findbugs {
ignoreFailures = true
effort = "max"
reportLevel = "high"
}

pmd {
ignoreFailures = true
ruleSetFiles = files(new File(rootDir, 'pmd.xml'))
ruleSets = []
toolVersion = '5.4.1'
targetJdk = '1.7'
toolVersion = '6.21.0'
}
idea {
module {
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Sun May 03 21:12:38 CEST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-bin.zip
59 changes: 36 additions & 23 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 24 additions & 19 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 14 additions & 13 deletions illabuild/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,26 @@ apply plugin: 'maven-publish'
archivesBaseName = 'illarion_build'

dependencies {
compile project(':common')
compile group: 'org.l33tlabs.twl', name: 'pngdecoder', version: '1.0'
compile gradleApi()
compile localGroovy()
implementation project(':common')
implementation group: 'org.l33tlabs.twl', name: 'pngdecoder', version: '1.0'
implementation gradleApi()
implementation localGroovy()
}

jar {
dependsOn { gitVersion }
manifest {
attributes \
'Permissions': 'all-permissions', \
'Codebase': 'illarion.org', \
'Trusted-Library': true, \
'Built-Date': new Date().format('yyyy-MM-dd HH:mm:ssZ'), \
'Built-By': System.getProperty('user.name'), \
'Built-JDK': System.getProperty('java.version'), \
'Implementation-Title': 'Illarion Build Utility', \
'Implementation-Vendor': 'Illarion e.V.', \
attributes(
'Permissions': 'all-permissions',
'Codebase': 'illarion.org',
'Trusted-Library': true,
'Built-Date': new Date().format('yyyy-MM-dd HH:mm:ssZ'),
'Built-By': System.getProperty('user.name'),
'Built-JDK': System.getProperty('java.version'),
'Implementation-Title': 'Illarion Build Utility',
'Implementation-Vendor': 'Illarion e.V.',
'Implementation-Version': project.ext.fullVersion
)
}
}

Expand Down
Loading