Skip to content

Release 0.1.0

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 28 Jul 07:31

Installation

To manually install the JAR file included in this release, use the following Maven command:

mvn install:install-file \
  -Dfile=<path-to-jar-file> \
  -DgroupId=no.acntech.kollectivequery \
  -DartifactId=kollectivequery \
  -Dversion=0.1.0 \
  -Dpackaging=jar \
  -DpomFile=<path-to-pom-file>

Ensure to replace the placeholders with the actual path to the downloaded JAR file and the release pom file.

Alternatively, run the following bash script to download and install the JAR file:

#!/bin/bash

# URLs for jar and pom files
JAR_URL=https://github.com/acntech/kollectivequery/releases/download/v0.1.0/kollectivequery-0.1.0.jar
POM_URL=https://github.com/acntech/kollectivequery/releases/download/v0.1.0/pom.xml

# Create a temporary directory
TEMP_DIR=$(mktemp -d -t ci-XXXXXXXXXX)

# File paths
JAR_FILE_PATH=$TEMP_DIR/kollectivequery-0.1.0.jar
POM_FILE_PATH=$TEMP_DIR/pom.xml

# Download jar and pom files
curl -L -o $JAR_FILE_PATH $JAR_URL
curl -L -o $POM_FILE_PATH $POM_URL

echo "Jar and POM files downloaded to $TEMP_DIR"

# Maven install command
mvn install:install-file \
-Dfile=$JAR_FILE_PATH \
-DgroupId=no.acntech.kollectivequery \
-DartifactId=kollectivequery \
-Dversion=0.1.0 \
-Dpackaging=jar \
-DpomFile=$POM_FILE_PATH

# Delete the temporary directory 
rm -r $TEMP_DIR

Gradle/Maven Dependency

Note that the Spring Boot version for Spring Boot dependencies used in this release is 3.3.2.

For Gradle, add this to your build.gradle file's dependencies block:

implementation 'no.acntech.kollectivequery:kollectivequery:0.1.0'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-logging'

For managing Spring Boot version:

plugins {
  id 'org.springframework.boot' version '3.3.2'
  id 'io.spring.dependency-management' version '1.1.6'
}           

For Maven, add this to your pom.xml file's dependencies block:

<dependency>
  <groupId>no.acntech.kollectivequery</groupId>
  <artifactId>kollectivequery</artifactId>
  <version>0.1.0</version>
</dependency>

<!-- Include the following Spring Boot Starter dependencies -->
<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-logging</artifactId>
</dependency>

For managing Spring Boot version, either use a parent POM:

<parent>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-parent</artifactId>
  <version>3.3.2</version>
</parent>

Or, define the spring boot dependencies in the dependencyManagement section:

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-dependencies</artifactId>
      <version>3.3.2</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>