JPMS support, updated version
parent
f076aadae7
commit
41b94d659e
25
README.md
25
README.md
|
@ -1,42 +1,33 @@
|
|||
Drop-in replacement for [minlog](https://github.com/EsotericSoftware/minlog).
|
||||
|
||||
###### [![Dorkbox](https://badge.dorkbox.com/dorkbox.svg "Dorkbox")](https://git.dorkbox.com/dorkbox/MinLog-SLF4J) [![Github](https://badge.dorkbox.com/github.svg "Github")](https://github.com/dorkbox/MinLog-SLF4J) [![Gitlab](https://badge.dorkbox.com/gitlab.svg "Gitlab")](https://gitlab.com/dorkbox/MinLog-SLF4J) [![Bitbucket](https://badge.dorkbox.com/bitbucket.svg "Bitbucket")](https://bitbucket.org/dorkbox/MinLog-SLF4J)
|
||||
|
||||
|
||||
###### [![Dorkbox](https://badge.dorkbox.com/dorkbox.svg "Dorkbox")](https://git.dorkbox.com/dorkbox/MinLog) [![Github](https://badge.dorkbox.com/github.svg "Github")](https://github.com/dorkbox/MinLog) [![Gitlab](https://badge.dorkbox.com/gitlab.svg "Gitlab")](https://gitlab.com/dorkbox/MinLog)
|
||||
|
||||
|
||||
* Logs through slf4j instead of printing directly to stdout
|
||||
* Suppresses no log levels at compile time so you can control them in your logging config instead
|
||||
|
||||
|
||||
<h4>We now release to maven!</h4>
|
||||
|
||||
Maven Info
|
||||
---------
|
||||
```
|
||||
<dependencies>
|
||||
...
|
||||
<dependency>
|
||||
<groupId>com.dorkbox</groupId>
|
||||
<artifactId>MinLog-SLF4J</artifactId>
|
||||
<version>2.0</version>
|
||||
<artifactId>MinLog</artifactId>
|
||||
<version>2.2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
```
|
||||
|
||||
Gradle Info
|
||||
---------
|
||||
````
|
||||
```
|
||||
dependencies {
|
||||
...
|
||||
compile 'com.dorkbox:MinLog-SLF4J:2.0'
|
||||
implementation("com.dorkbox:MinLog:2.2")
|
||||
}
|
||||
````
|
||||
|
||||
Or if you don't want to use Maven, you can access the files directly here:
|
||||
https://repo1.maven.org/maven2/com/dorkbox/MinLog-SLF4J/
|
||||
|
||||
|
||||
https://repo1.maven.org/maven2/org/slf4j/slf4j-api/
|
||||
|
||||
```
|
||||
|
||||
License
|
||||
---------
|
||||
|
|
|
@ -33,7 +33,7 @@ object Extras {
|
|||
// set for the project
|
||||
const val description = "Drop-in replacement for MinLog to log through SLF4j."
|
||||
const val group = "com.dorkbox"
|
||||
const val version = "2.1"
|
||||
const val version = "2.2"
|
||||
|
||||
// set as project.ext
|
||||
const val name = "MinLog-SLF4J"
|
||||
|
@ -49,8 +49,9 @@ object Extras {
|
|||
///// assign 'Extras'
|
||||
///////////////////////////////
|
||||
GradleUtils.load("$projectDir/../../gradle.properties", Extras)
|
||||
GradleUtils.compileConfiguration(JavaVersion.VERSION_1_8)
|
||||
GradleUtils.defaults()
|
||||
GradleUtils.compileConfiguration(JavaVersion.VERSION_1_8)
|
||||
GradleUtils.jpms(JavaVersion.VERSION_1_9)
|
||||
|
||||
|
||||
licensing {
|
||||
|
|
|
@ -60,7 +60,7 @@ public class Log {
|
|||
*/
|
||||
public static
|
||||
String getVersion() {
|
||||
return "2.1";
|
||||
return "2.2";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* Copyright 2021 dorkbox, llc
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.esotericsoftware.minlog;
|
||||
|
||||
/**
|
||||
* Required for intellij to not complain regarding `module-info` for a multi-release jar.
|
||||
* This file is completely ignored by the gradle build process
|
||||
*/
|
||||
public
|
||||
class EmptyClass {}
|
|
@ -0,0 +1,5 @@
|
|||
module dorkbox.minlog {
|
||||
exports com.esotericsoftware.minlog;
|
||||
|
||||
requires java.base;
|
||||
}
|
Loading…
Reference in New Issue