Skip to content

Commit

Permalink
Declare version, group, and description
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Aug 27, 2024
1 parent da3adb0 commit 86a9f6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ plugins {
id("com.vanniktech.maven.publish")
}

version = providers.gradleProperty("VERSION_NAME").get()
group = providers.gradleProperty("GROUP").get()
description = providers.gradleProperty("POM_DESCRIPTION").get()

val buildTimeAndDate: Date by lazy {
if ((version as String).endsWith("SNAPSHOT")) {
Date(0)
Expand All @@ -44,10 +48,10 @@ tasks.jar {
"Build-Date" to buildDate,
"Build-Time" to buildTime,
// "Build-Revision" to versioning.info.commit,
"Specification-Title" to project.name,
"Specification-Version" to project.version,
"Implementation-Title" to project.name,
"Implementation-Version" to project.version
"Specification-Title" to name,
"Specification-Version" to version,
"Implementation-Title" to name,
"Implementation-Version" to version
)
}
metaInf {
Expand Down
3 changes: 0 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
group=me.champeau.jmh
version=0.7.3-SNAPSHOT

org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8
org.gradle.parallel=true
org.gradle.caching=true
Expand Down

0 comments on commit 86a9f6a

Please sign in to comment.