This repository was archived by the owner on Jun 6, 2024. It is now read-only.
File tree 3 files changed +24
-1
lines changed
3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,22 @@ ext {
14
14
version = libraryVersion
15
15
group = ' com.theokanning.openai-gpt3-java'
16
16
17
+ task sourcesJar (type : Jar , dependsOn : classes) {
18
+ classifier = ' sources'
19
+ from sourceSets. main. allSource
20
+ }
21
+
22
+ task javadocJar (type : Jar , dependsOn : javadoc) {
23
+ classifier = ' javadoc'
24
+ from javadoc. destinationDir
25
+ }
26
+
17
27
publishing {
18
28
publications {
19
29
ApiPublication (MavenPublication ) {
20
30
from components. java
31
+ artifact sourcesJar
32
+ artifact javadocJar
21
33
groupId project. group
22
34
artifactId ' api'
23
35
version libraryVersion
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ buildscript {
7
7
}
8
8
}
9
9
10
-
11
10
allprojects {
12
11
repositories {
13
12
jcenter()
Original file line number Diff line number Diff line change @@ -16,10 +16,22 @@ ext {
16
16
version = libraryVersion
17
17
group = ' com.theokanning.openai-gpt3-java'
18
18
19
+ task sourcesJar (type : Jar , dependsOn : classes) {
20
+ classifier = ' sources'
21
+ from sourceSets. main. allSource
22
+ }
23
+
24
+ task javadocJar (type : Jar , dependsOn : javadoc) {
25
+ classifier = ' javadoc'
26
+ from javadoc. destinationDir
27
+ }
28
+
19
29
publishing {
20
30
publications {
21
31
ClientPublication (MavenPublication ) {
22
32
from components. java
33
+ artifact sourcesJar
34
+ artifact javadocJar
23
35
groupId project. group
24
36
artifactId ' client'
25
37
version libraryVersion
You can’t perform that action at this time.
0 commit comments