Hotfix some java_tools gradle configs (#3165)

* fix: deleted mavenRepositories declaration

* fix: deleted unnecessary settings.gradle for enum_to_string

* fix: dependencies for junit, annotations, jsr305; feat: added new dependency for jsr305; fix: deleted settings.gradle for logging; fix: moved enum_to_string tests to test folder

* fix: deleted mavenRepositories declaration

* fix: deleted unnecessary settings.gradle for enum_to_string

* fix: dependencies for junit, annotations, jsr305; feat: added new dependency for jsr305; fix: deleted settings.gradle for logging; fix: moved enum_to_string tests to test folder

* fix: placed test classes to test folder in enum_to_string; feat: get updates from master
This commit is contained in:
Lenar Khannanov 2021-08-16 23:52:52 +03:00 committed by GitHub
parent cf4f012c79
commit a334f0d23f
14 changed files with 23 additions and 43 deletions

View File

@ -2,5 +2,6 @@ ext.libs = [
junit : "junit:junit:4.13",
annotations: "org.jetbrains:annotations:16.0.1",
javaxJson : "javax.json:javax.json-api:1.1.4",
snakeyaml : "org.yaml:snakeyaml:1.26"
snakeyaml : "org.yaml:snakeyaml:1.26",
jsr305 : "com.google.code.findbugs:jsr305:3.0.2"
]

@ -1 +1 @@
Subproject commit 635b5567e3442b89aa3941d74622df9aceb7cab9
Subproject commit 10cbc928b0367d1396662cd5f66b5b1f00de637e

View File

@ -2,6 +2,8 @@ plugins {
id 'java'
}
apply from: '../../android/dependencies.gradle'
dependencies {
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
implementation libs.jsr305
}

View File

@ -2,7 +2,9 @@ plugins {
id 'java-library'
}
apply from: '../../android/dependencies.gradle'
dependencies {
implementation project(':logging-api')
implementation fileTree(dir: '../lib', include: 'annotations.jar')
implementation libs.annotations
}

View File

@ -1,2 +0,0 @@
include ':logging-api'
project(':logging-api').projectDir = new File('../logging-api')

View File

@ -2,15 +2,13 @@ plugins {
id 'java-library'
}
repositories {
mavenCentral()
}
defaultTasks 'jar'
apply from: '../../android/dependencies.gradle'
dependencies {
implementation 'junit:junit:4.8.2'
implementation fileTree(dir: '../../java_console/lib', include: 'annotations.jar')
testImplementation libs.junit
implementation libs.annotations
}
jar {

View File

@ -5,20 +5,15 @@ plugins {
apply from: '../../android/dependencies.gradle'
repositories {
mavenCentral()
}
defaultTasks 'shadowJar'
dependencies {
// https://mvnrepository.com/artifact/com.google.code.findbugs/jsr305
implementation 'com.google.code.findbugs:jsr305:2.0.1'
implementation libs.jsr305
implementation project(':logging')
implementation project(':logging-api')
implementation fileTree(dir: '../../java_console/lib', include: 'annotations.jar')
implementation libs.junit
implementation libs.annotations
testImplementation libs.junit
}
/*
@ -56,8 +51,8 @@ shadowJar {
and loggin-api as in build.xml
*/
dependencies {
exclude(dependency('com.google.code.findbugs:jsr305:.*'))
exclude(dependency('junit:junit:.*'))
exclude 'annotations.jar'
exclude(dependency(libs.jsr305))
exclude(dependency(libs.junit))
exclude(dependency(libs.annotations))
}
}

View File

@ -1,4 +0,0 @@
include ':logging'
project(':logging').projectDir = new File('../../java_console/logging')
include ':logging-api'
project(':logging-api').projectDir = new File('../../java_console/logging-api')

View File

@ -3,18 +3,12 @@ plugins {
id 'application'
}
apply from: '../../android/dependencies.gradle'
repositories {
mavenCentral()
}
defaultTasks 'jar'
apply from: '../../android/dependencies.gradle'
dependencies {
implementation libs.junit
testImplementation libs.junit
}
jar {

View File

@ -2,10 +2,6 @@ plugins {
id 'java-library'
}
repositories {
mavenCentral()
}
defaultTasks 'jar'
apply from: '../../android/dependencies.gradle'

View File

@ -2,14 +2,12 @@ plugins {
id 'java-library'
}
repositories {
mavenCentral()
}
defaultTasks 'jar'
apply from: '../../android/dependencies.gradle'
dependencies {
implementation 'junit:junit:4.8.2'
testImplementation libs.junit
}
jar {