Skip to content

Commit 83de4f9

Browse files
committed
Publish snapshot releases
1 parent ca677d0 commit 83de4f9

3 files changed

Lines changed: 11 additions & 13 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Publish package to the Maven Central Repository and GitHub Packages
22
on:
3+
push:
34
release:
45
types: [ created ]
56
jobs:

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
Reference implementation of an agent library written in Java. This library handles all the communication with [Chronos Control](https://github.com/Chronos-EaaS/Chronos-Control) including the upload of the results. It provides an interface with all necessary methods required for adding Chronos support to an existing evaluation client.
44

55
## Getting Started
6-
* Add `maven { url 'https://dbis-nexus.dmi.unibas.ch/repository/maven2/' }` to the `repositories` in your gradle build file.
7-
* Add `implementation group: 'ch.unibas.dmi.dbis.chronos', name: 'chronos-agent', version: '2.3.1'` to your `dependencies`.
8-
* Extend the `AbstractChronosAgent` class, call `YourClass.start()` in your `main` method, and you are good to go!
9-
> Assuming that you already have a running [Chronos Control](https://github.com/Chronos-EaaS/Chronos-Control/) instance :smirk:)
106

7+
* Chronos Agent is published to Maven Central. Make sure that you have `mavenCentral()` to the `repositories` in your gradle build file.
8+
* Add `implementation group: 'org.chronos-eaas', name: 'chronos-agent', version: '2.3.2'` to your `dependencies`.
9+
* Extend the `AbstractChronosAgent` class, call `YourClass.start()` in your `main` method, and you are good to go!
10+
> Assuming that you already have a running [Chronos Control](https://github.com/Chronos-EaaS/Chronos-Control/) instance)
1111
12-
>**Fat Jar**    If you require a fat jar, please clone the repository and run `gradlew shadowJar`. The fat jar is located in `build/libs/`. You need at least Java 8 for building.
12+
> **Shadow Jar**    If you require a shadow jar (a jar file containing all dependencies), please clone the repository and run `gradlew shadowJar`. The shadow jar is then located in `build/libs/`. You need at least Java 8 for building.
1313
1414
## Roadmap
1515
See the [open issues](https://github.com/Chronos-EaaS/Chronos-Agent/issues) for a list of proposed features (and known issues).

build.gradle

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
id 'signing'
55
id 'idea'
66
id 'maven-publish'
7-
id 'com.github.johnrengelman.shadow' version '7.1.0'
7+
//id 'com.github.johnrengelman.shadow' version '7.1.0'
88
id 'io.freefair.lombok' version '6.2.0'
99
}
1010

@@ -60,10 +60,10 @@ jar {
6060
attributes 'Version': project.version
6161
}
6262
}
63-
shadowJar {
63+
64+
/*shadowJar {
6465
archiveClassifier.set('shadow')
65-
}
66-
assemble.dependsOn shadowJar
66+
}*/
6767

6868

6969
signing {
@@ -81,9 +81,6 @@ publishing {
8181
publications {
8282
mavenJava(MavenPublication) {
8383
from components.java
84-
artifact jar
85-
artifact source: sourcesJar, classifier: 'sources', extension: 'jar'
86-
artifact source: javadocJar, classifier: 'javadoc', extension: 'jar'
8784
pom {
8885
name = 'Chronos Agent'
8986
description = 'Reference implementation of a Chronos Agent.'
@@ -121,7 +118,7 @@ publishing {
121118
}
122119
}
123120
}
124-
task generatePom(group: 'publishing', dependsOn: "generatePomFileFor${project.name.capitalize()}Publication")
121+
//task generatePom(group: 'publishing', dependsOn: "generatePomFileFor${project.name.capitalize()}Publication")
125122

126123

127124
idea {

0 commit comments

Comments
 (0)