Compare commits

...

10 Commits

Author SHA1 Message Date
Robinson 86980fde72
updated build deps 2023-11-27 17:14:36 +01:00
Robinson 31a77b6ec0
Updated build deps 2023-10-09 12:25:39 +02:00
Robinson 7b255b2687
updated build deps, kotlin 1.9.0 2023-10-02 16:15:02 +02:00
Robinson 022812e58e
updated gradle 2023-10-02 16:12:50 +02:00
Robinson 452a71d75a
version 1.4 2023-08-19 15:52:51 +02:00
Robinson 76c9797c01
Added description to annotation 2023-08-19 15:52:33 +02:00
Robinson d2790cc2d9
Hardcoded project name 2023-08-05 12:26:33 -06:00
Robinson 56b8561b2e
Updated build deps. 2023-07-18 01:27:24 +02:00
Robinson 726e6740dd
updated info 2023-02-03 02:06:14 +01:00
Robinson 98c2ec3488
updated build deps 2023-02-03 02:00:05 +01:00
5 changed files with 18 additions and 17 deletions

View File

@ -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.

View File

@ -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
}
}

View File

@ -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

View File

@ -13,3 +13,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
rootProject.name = "PropertyLoader"

View File

@ -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 "";
}