Compare commits
10 Commits
Version_1.
...
master
Author | SHA1 | Date |
---|---|---|
Robinson | 86980fde72 | |
Robinson | 31a77b6ec0 | |
Robinson | 7b255b2687 | |
Robinson | 022812e58e | |
Robinson | 452a71d75a | |
Robinson | 76c9797c01 | |
Robinson | d2790cc2d9 | |
Robinson | 56b8561b2e | |
Robinson | 726e6740dd | |
Robinson | 98c2ec3488 |
|
@ -1,4 +1,4 @@
|
|||
Swing Active Render
|
||||
Property annotation provider
|
||||
|
||||
###### [![Dorkbox](https://badge.dorkbox.com/dorkbox.svg "Dorkbox")](https://git.dorkbox.com/dorkbox/SwingActiveRender) [![Github](https://badge.dorkbox.com/github.svg "Github")](https://github.com/dorkbox/SwingActiveRender) [![Gitlab](https://badge.dorkbox.com/gitlab.svg "Gitlab")](https://gitlab.com/dorkbox/SwingActiveRender)
|
||||
|
||||
|
@ -13,7 +13,7 @@ Maven Info
|
|||
<dependency>
|
||||
<groupId>com.dorkbox</groupId>
|
||||
<artifactId>PropertyLoader</artifactId>
|
||||
<version>1.2</version>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
```
|
||||
|
@ -23,7 +23,7 @@ Gradle Info
|
|||
````
|
||||
dependencies {
|
||||
...
|
||||
compile "com.dorkbox:PropertyLoader:1.0"
|
||||
compile "com.dorkbox:PropertyLoader:1.2"
|
||||
}
|
||||
````
|
||||
|
||||
|
@ -32,4 +32,3 @@ License
|
|||
---------
|
||||
This project is © 2021 dorkbox llc, and is distributed under the terms of the Apache v2.0 License. See file "LICENSE" for further
|
||||
references.
|
||||
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import java.time.Instant
|
||||
|
||||
///////////////////////////////
|
||||
////// PUBLISH TO SONATYPE / MAVEN CENTRAL
|
||||
////// TESTING : (to local maven repo) <'publish and release' - 'publishToMavenLocal'>
|
||||
|
@ -25,17 +23,17 @@ import java.time.Instant
|
|||
gradle.startParameter.showStacktrace = ShowStacktrace.ALWAYS // always show the stacktrace!
|
||||
|
||||
plugins {
|
||||
id("com.dorkbox.GradleUtils") version "3.9"
|
||||
id("com.dorkbox.Licensing") version "2.19.1"
|
||||
id("com.dorkbox.VersionUpdate") version "2.5"
|
||||
id("com.dorkbox.GradlePublish") version "1.17"
|
||||
id("com.dorkbox.GradleUtils") version "3.18"
|
||||
id("com.dorkbox.Licensing") version "2.24"
|
||||
id("com.dorkbox.VersionUpdate") version "2.8"
|
||||
id("com.dorkbox.GradlePublish") version "1.22"
|
||||
}
|
||||
|
||||
object Extras {
|
||||
// set for the project
|
||||
const val description = "Property annotation and loader for fields"
|
||||
const val group = "com.dorkbox"
|
||||
const val version = "1.2"
|
||||
const val version = "1.4"
|
||||
|
||||
// set as project.ext
|
||||
const val name = "PropertyLoader"
|
||||
|
@ -43,8 +41,6 @@ object Extras {
|
|||
const val vendor = "Dorkbox LLC"
|
||||
const val vendorUrl = "https://dorkbox.com"
|
||||
const val url = "https://git.dorkbox.com/dorkbox/PropertyLoader"
|
||||
|
||||
val buildDate = Instant.now().toString()
|
||||
}
|
||||
|
||||
///////////////////////////////
|
||||
|
@ -74,7 +70,7 @@ tasks.jar.get().apply {
|
|||
attributes["Specification-Vendor"] = Extras.vendor
|
||||
|
||||
attributes["Implementation-Title"] = "${Extras.group}.${Extras.id}"
|
||||
attributes["Implementation-Version"] = Extras.buildDate
|
||||
attributes["Implementation-Version"] = GradleUtils.now()
|
||||
attributes["Implementation-Vendor"] = Extras.vendor
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
|
|
@ -13,3 +13,4 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
rootProject.name = "PropertyLoader"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2021 dorkbox, llc
|
||||
* Copyright 2023 dorkbox, llc
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -27,7 +27,7 @@ import java.lang.annotation.Target;
|
|||
* <br>
|
||||
* Loading arguments is left for the end-user application. Using an annotation detector to load/save properties is recommended.
|
||||
* <br>
|
||||
* For example (if implemented): -Ddorkbox.Args.Debug=true
|
||||
* For example (if implemented): -DmyApp.enable_debug=true
|
||||
*/
|
||||
@Retention(value = RetentionPolicy.RUNTIME)
|
||||
@Target(value = {ElementType.FIELD})
|
||||
|
@ -38,4 +38,9 @@ public
|
|||
* This is used to mark a unique value for the property, in case the object name is used elsewhere, is generic, or is repeated.
|
||||
*/
|
||||
String alias() default "";
|
||||
|
||||
/**
|
||||
* This is used to set a description of the property, where it's defined.
|
||||
*/
|
||||
String description() default "";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue