Skip to content

Commit

Permalink
release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
per committed Jul 25, 2022
1 parent 8705eba commit 983841c
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 16 deletions.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,32 @@ SqlUtil.withInstance("jdbc:postgresql://localhost:5432/mydb", "dbUser", "dbPassw
}
}
}
```
```
See [test.alipsa.groovy.datautil.SqlUtilTest](https://github.com/perNyfelt/data-utils/blob/master/src/test/groovy/test/alipsa/groovy/datautil/SqlUtilTest.groovy)
for more examples!

## Using the dependency
data-utils is available from maven central

Groovy:
```groovy
implementation "se.alipsa.groovy:data-utils:1.0.1"
```

Maven:
```xml
<dependency>
<groupId>se.alipsa.groovy</groupId>
<artifactId>data-utils</artifactId>
<version>1.0.1</version>
</dependency>
```

## Version history

### 1.0.1, 2022-07-25
- Upgrade to Groovy 4.0.4
- Build script fixes

### 1.0.0, 2022-07-15
- initial release
57 changes: 42 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
id 'groovy'
id 'java-library'
id 'signing'
id 'maven-publish'
id('io.github.gradle-nexus.publish-plugin') version '1.1.0'
}

repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
mavenCentral()
}

dependencies {
Expand All @@ -24,12 +20,14 @@ dependencies {
}

group = 'se.alipsa.groovy'
version = '1.1.0-SNAPSHOT'
description = 'Groovy Data Utils'
version = '1.0.1'
description = 'Java FX GUI for Groovy based data science analysis and applications'
java.sourceCompatibility = JavaVersion.VERSION_17

tasks.named('test') {
// Use JUnit Platform for unit tests.
test {
dependsOn cleanTest
testLogging.showStandardStreams = true

useJUnitPlatform()
}

Expand All @@ -45,15 +43,44 @@ task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
}

artifacts {
archives sourcesJar
archives javadocJar
nexusPublishing {
repositories {
sonatype()
}
}

publishing {
publications {
maven(MavenPublication) {
from(components.java)
from components.java
artifact(javadocJar)
artifact(sourcesJar)
pom {
name = 'Groovy Data Utils'
description = "${project.description}"
url = "https://github.com/perNyfelt/data-utils"
licenses {
license {
name = 'MIT License'
url = 'https://raw.githubusercontent.com/perNyfelt/data-utils/master/LICENSE'
}
}
developers {
developer {
id = 'perNyfelt'
name = 'Per Nyfelt'
}
}
scm {
url = 'https://github.com/perNyfelt/data-utils/tree/master'
connection = 'scm:git:https://github.com/perNyfelt/data-utils.git'
developerConnection = 'scm:git:https://github.com/perNyfelt/data-utils.git'
}
}
}
}
}

signing {
sign publishing.publications.maven
}
4 changes: 4 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
source ~/.sdkman/bin/sdkman-init.sh
source jdk17
./gradlew clean publishToSonatype closeAndReleaseSonatypeStagingRepository

0 comments on commit 983841c

Please sign in to comment.