forked from structurizr/onpremises
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched to multi-module Gradle project to separate on-premises insta…
…llation from the plugin API.
- Loading branch information
1 parent
dd378a8
commit d71dd8d
Showing
217 changed files
with
368 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
rootProject.name = 'structurizr-onpremises' | ||
include 'structurizr-onpremises' | ||
include 'structurizr-onpremises-plugin' |
31 changes: 0 additions & 31 deletions
31
src/main/java/com/structurizr/onpremises/component/workspace/WorkspaceEvent.java
This file was deleted.
Oops, something went wrong.
68 changes: 0 additions & 68 deletions
68
src/main/java/com/structurizr/onpremises/component/workspace/WorkspaceProperties.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
apply plugin: 'java-library' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'signing' | ||
|
||
defaultTasks 'clean', 'compileJava', 'test' | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
api 'com.structurizr:structurizr-client:1.26.1' | ||
|
||
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2' | ||
} | ||
|
||
compileJava.options.encoding = 'UTF-8' | ||
compileTestJava.options.encoding = 'UTF-8' | ||
|
||
sourceCompatibility = 11 | ||
targetCompatibility = 11 | ||
|
||
description = 'Plugin APIs for the Structurizr on-premises installation' | ||
group = 'com.structurizr' | ||
version = '0.0.1' | ||
|
||
test { | ||
useJUnitPlatform() | ||
} | ||
|
||
java { | ||
withJavadocJar() | ||
withSourcesJar() | ||
} | ||
|
||
jar { | ||
manifest { | ||
attributes( | ||
'Implementation-Title': description, | ||
'Implementation-Version': version | ||
) | ||
} | ||
} | ||
|
||
publishing { | ||
repositories { | ||
maven { | ||
name = "ossrh" | ||
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
credentials { | ||
username = findProperty('ossrhUsername') | ||
password = findProperty('ossrhPassword') | ||
} | ||
} | ||
} | ||
|
||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
|
||
pom { | ||
name = 'structurizr-onpremises-plugins' | ||
description = 'Plugin APIs for the Structurizr on-premises installation' | ||
url = 'https://github.com/structurizr/onpremises' | ||
|
||
scm { | ||
connection = 'scm:git:git://github.com/structurizr/onpremises.git' | ||
developerConnection = 'scm:git:[email protected]:structurizr/onpremises.git' | ||
url = 'https://github.com/structurizr/onpremises' | ||
} | ||
|
||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id = "simon" | ||
name = "Simon Brown" | ||
email = "[email protected]" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
sign publishing.publications.mavenJava | ||
} |
11 changes: 11 additions & 0 deletions
11
...s-plugin/src/main/java/com/structurizr/onpremises/component/workspace/WorkspaceEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.structurizr.onpremises.component.workspace; | ||
|
||
public interface WorkspaceEvent { | ||
|
||
WorkspaceProperties getWorkspaceProperties(); | ||
|
||
String getJson(); | ||
|
||
void setJson(String json); | ||
|
||
} |
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
...gin/src/main/java/com/structurizr/onpremises/component/workspace/WorkspaceProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.structurizr.onpremises.component.workspace; | ||
|
||
import com.structurizr.configuration.User; | ||
import com.structurizr.configuration.Visibility; | ||
|
||
import java.util.Date; | ||
import java.util.Set; | ||
|
||
public interface WorkspaceProperties { | ||
|
||
long getId(); | ||
|
||
String getName(); | ||
|
||
String getDescription(); | ||
|
||
Date getLastModifiedDate(); | ||
|
||
Visibility getVisibility(); | ||
|
||
Set<User> getUsers(); | ||
|
||
} |
File renamed without changes.
Oops, something went wrong.