Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcf0a6d2

Browse files
committed
Publish to maven central (through sonatype)
1 parent94c067b commitcf0a6d2

File tree

4 files changed

+85
-12
lines changed

4 files changed

+85
-12
lines changed

‎.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
/.gradle
33
/build
44
/out
5-
.DS_Store
5+
/gradle.properties
6+
.DS_Store

‎README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
1-
#tracers.java
1+
#tracers.java[![Maven Central](https://img.shields.io/maven-central/v/org.algorithm-visualizer/tracers-java.svg?style=flat-square)](https://search.maven.org/artifact/org.algorithm-visualizer/tracers-java)
22

33
>`tracers.java` is a visualization library for Java.
44
55
This repository is part of the project[Algorithm Visualizer](https://github.com/algorithm-visualizer).
66

77
##Installation
88

9-
1. Download`algorithm-visualizer.jar` in the[latest release](https://github.com/algorithm-visualizer/tracers.java/releases/latest).
10-
11-
2. Add it to the classpath.
9+
- Gradle
10+
```gradle
11+
dependencies {
12+
implementation 'org.algorithm-visualizer:tracers-java:+'
13+
}
14+
```
15+
16+
- Maven
17+
```xml
18+
<dependency>
19+
<groupId>org.algorithm-visualizer</groupId>
20+
<artifactId>tracers-java</artifactId>
21+
<version>[1.0.0,)</version>
22+
</dependency>
23+
```
1224
1325
## Usage
1426

‎build.gradle

Lines changed: 66 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
plugins {
2-
id'com.github.johnrengelman.shadow' version'2.0.4'
3-
id'java-library'
4-
}
1+
applyplugin:'java-library'
2+
applyplugin:'maven'
3+
applyplugin:'signing'
54

6-
group='org.algorithm_visualizer'
5+
group='org.algorithm-visualizer'
76
version='2.3.1'
87
sourceCompatibility=1.8
98

@@ -15,4 +14,65 @@ dependencies {
1514
implementation'com.google.code.gson:gson:2.8.5'
1615
}
1716

18-
shadowJar.archiveName='algorithm-visualizer.jar'
17+
taskjavadocJar(type:Jar) {
18+
classifier='javadoc'
19+
from javadoc
20+
}
21+
22+
tasksourcesJar(type:Jar) {
23+
classifier='sources'
24+
from sourceSets.main.allSource
25+
}
26+
27+
artifacts {
28+
archives javadocJar, sourcesJar
29+
}
30+
31+
signing {
32+
sign configurations.archives
33+
}
34+
35+
uploadArchives {
36+
repositories {
37+
mavenDeployer {
38+
beforeDeployment {MavenDeploymentdeployment-> signing.signPom(deployment) }
39+
40+
repository(url:"https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
41+
authentication(userName: ossrhUsername,password: ossrhPassword)
42+
}
43+
44+
snapshotRepository(url:"https://oss.sonatype.org/content/repositories/snapshots/") {
45+
authentication(userName: ossrhUsername,password: ossrhPassword)
46+
}
47+
48+
pom.project {
49+
name'tracers.java'
50+
packaging'jar'
51+
// optionally artifactId can be defined here
52+
description'Visualization Library for Java'
53+
url'https://github.com/algorithm-visualizer/tracers.java'
54+
55+
scm {
56+
connection'scm:git:git@github.com:algorithm-visualizer/tracers.java.git'
57+
developerConnection'scm:git:git@github.com:algorithm-visualizer/tracers.java.git'
58+
url'https://github.com/algorithm-visualizer/tracers.java'
59+
}
60+
61+
licenses {
62+
license {
63+
name'The MIT License (MIT)'
64+
url'http://opensource.org/licenses/MIT'
65+
}
66+
}
67+
68+
developers {
69+
developer {
70+
id'parkjs814'
71+
name'Jinseo Jason Park'
72+
email'jason.park@gatech.edu'
73+
}
74+
}
75+
}
76+
}
77+
}
78+
}

‎settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rootProject.name='tracers'
1+
rootProject.name='tracers-java'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp