From a022ca4a81c03c8a23ffc70a52f16da160f4c650 Mon Sep 17 00:00:00 2001 From: Niclas Kjellin Date: Tue, 23 Nov 2021 21:16:23 +0100 Subject: [PATCH] Updates to build.gradle for version 1.0 --- build.gradle | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index bce8d33..a3bb8eb 100644 --- a/build.gradle +++ b/build.gradle @@ -7,24 +7,32 @@ // Copyright © 2021 Shift Everywhere AB. All rights reserved. // plugins { - id 'java' + id 'java-library' } group 'io.dimeformat' -version '1.0.0-SNAPSHOT' +version '1.0.0' repositories { mavenCentral() } dependencies { - implementation 'com.goterl:lazysodium-java:5.1.1' - implementation 'net.java.dev.jna:jna:5.10.0' - implementation 'org.json:json:20210307' + api 'com.goterl:lazysodium-java:5.1.1' + api 'net.java.dev.jna:jna:5.10.0' + api 'org.json:json:20210307' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0' } test { useJUnitPlatform() -} \ No newline at end of file +} + +tasks.named('jar') { + manifest { + attributes('Implementation-Title': project.name, + 'Implementation-Version': project.version) + } +} +