Skip to content

Commit

Permalink
dbeaver/pro#3538 maven publisher (#51)
Browse files Browse the repository at this point in the history
* dbeaver/pro#3538 Maven deploy config + javadoc

* dbeaver/pro#3538 Maven deploy config + javadoc

* dbeaver/pro#3538 Modules descriptions

* dbeaver/pro#3538 Deploy config

* dbeaver/pro#3538 Deploy config

* dbeaver/pro#3538 Deploy config

* dbeaver/pro#3538 Deploy config
  • Loading branch information
serge-rider authored Oct 30, 2024
1 parent 7b103fc commit 13255a4
Show file tree
Hide file tree
Showing 13 changed files with 363 additions and 142 deletions.
75 changes: 52 additions & 23 deletions modules/com.dbeaver.jdbc.api/pom.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.dbeaver.common</groupId>
<artifactId>com.dbeaver.common.modules</artifactId>
<version>2.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>com.dbeaver.jdbc.api</artifactId>
<name>JDBC framework</name>
<packaging>eclipse-plugin</packaging>

<dependencies>
<dependency>
<groupId>com.dbeaver.common</groupId>
<artifactId>org.jkiss.utils</artifactId>
</dependency>
</dependencies>

<build>
<sourceDirectory>${project.basedir}/src/</sourceDirectory>
</build>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.dbeaver.common</groupId>
<artifactId>com.dbeaver.common.modules</artifactId>
<version>2.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>com.dbeaver.jdbc.api</artifactId>
<packaging>eclipse-plugin</packaging>

<name>JDBC framework</name>
<description>Framework for JDBC drivers development.</description>
<url>https://github.com/dbeaver/dbeaver-common</url>

<dependencies>
<dependency>
<groupId>com.dbeaver.common</groupId>
<artifactId>org.jkiss.utils</artifactId>
</dependency>
</dependencies>


<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<name>Serge Rider</name>
<email>[email protected]</email>
<url>https://github.com/serge-rider</url>
<organization>DBeaver Corp</organization>
<organizationUrl>https://github.com/dbeaver</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:[email protected]:dbeaver/dbeaver-common.git</connection>
<developerConnection>scm:git:[email protected]:dbeaver/dbeaver-common.git</developerConnection>
<url>[email protected]:dbeaver/dbeaver-common.git</url>
</scm>

<build>
<sourceDirectory>${project.basedir}/src/</sourceDirectory>
</build>

</project>
83 changes: 56 additions & 27 deletions modules/com.dbeaver.rpc/pom.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.dbeaver.common</groupId>
<artifactId>com.dbeaver.common.modules</artifactId>
<version>2.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>com.dbeaver.rpc</artifactId>
<name>RPC framework</name>
<packaging>eclipse-plugin</packaging>

<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
<dependency>
<groupId>com.dbeaver.common</groupId>
<artifactId>org.jkiss.utils</artifactId>
</dependency>
</dependencies>

<build>
<sourceDirectory>${project.basedir}/src/</sourceDirectory>
</build>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.dbeaver.common</groupId>
<artifactId>com.dbeaver.common.modules</artifactId>
<version>2.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>com.dbeaver.rpc</artifactId>
<packaging>eclipse-plugin</packaging>

<name>RPC framework</name>
<description>RPC over HTTP.</description>
<url>https://github.com/dbeaver/dbeaver-common</url>

<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
<dependency>
<groupId>com.dbeaver.common</groupId>
<artifactId>org.jkiss.utils</artifactId>
</dependency>
</dependencies>


<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<name>Serge Rider</name>
<email>[email protected]</email>
<url>https://github.com/serge-rider</url>
<organization>DBeaver Corp</organization>
<organizationUrl>https://github.com/dbeaver</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:[email protected]:dbeaver/dbeaver-common.git</connection>
<developerConnection>scm:git:[email protected]:dbeaver/dbeaver-common.git</developerConnection>
<url>[email protected]:dbeaver/dbeaver-common.git</url>
</scm>

<build>
<sourceDirectory>${project.basedir}/src/</sourceDirectory>
</build>

</project>
70 changes: 49 additions & 21 deletions modules/org.jkiss.utils/pom.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.dbeaver.common</groupId>
<artifactId>com.dbeaver.common.modules</artifactId>
<version>2.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>org.jkiss.utils</artifactId>
<name>Common utils</name>
<packaging>eclipse-plugin</packaging>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.dbeaver.common</groupId>
<artifactId>com.dbeaver.common.modules</artifactId>
<version>2.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>org.jkiss.utils</artifactId>
<packaging>eclipse-plugin</packaging>

<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
</dependencies>
<name>DBeaver Common Utils</name>
<description>Various utilities for DBeaver projects. Similar to commons-utils or guava.</description>
<url>https://github.com/dbeaver/dbeaver-common</url>

<build>
<sourceDirectory>${project.basedir}/src/</sourceDirectory>
</build>
<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
</dependencies>

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<name>Serge Rider</name>
<email>[email protected]</email>
<url>https://github.com/serge-rider</url>
<organization>DBeaver Corp</organization>
<organizationUrl>https://github.com/dbeaver</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:[email protected]:dbeaver/dbeaver-common.git</connection>
<developerConnection>scm:git:[email protected]:dbeaver/dbeaver-common.git</developerConnection>
<url>[email protected]:dbeaver/dbeaver-common.git</url>
</scm>

<build>
<sourceDirectory>${project.basedir}/src/</sourceDirectory>
</build>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ public static <T> T findBestCaseAwareMatch(@NotNull Iterable<? extends T> object
/**
* Groups values into a map of their shared key and a list of matching values using that key.
* <p>
* <h3>Group strings by their first character</h3>
* Group strings by their first character
* <pre>{@code
* final List<String> values = Arrays.asList("aaa", "abb", "bbb", "bab", "ccc");
* final Map<Character, List<String>> groups = group(values, x -> x.charAt(0));
Expand Down
54 changes: 27 additions & 27 deletions modules/org.jkiss.utils/src/org/jkiss/utils/IntKeyMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class IntKeyMap<VALUE> implements Map<Integer, VALUE> {
transient volatile int modCount;

/**
* Constructs an empty <tt>IntKeyMap</tt> with the specified initial
* Constructs an empty IntKeyMap with the specified initial
* capacity and load factor.
*
* @param initialCapacity The initial capacity.
Expand Down Expand Up @@ -98,7 +98,7 @@ public IntKeyMap(int initialCapacity, float loadFactor) {
}

/**
* Constructs an empty <tt>IntKeyMap</tt> with the specified initial
* Constructs an empty IntKeyMap with the specified initial
* capacity and the default load factor (0.75).
*
* @param initialCapacity the initial capacity.
Expand All @@ -109,7 +109,7 @@ public IntKeyMap(int initialCapacity) {
}

/**
* Constructs an empty <tt>IntKeyMap</tt> with the default initial capacity
* Constructs an empty IntKeyMap with the default initial capacity
* (16) and the default load factor (0.75).
*/
public IntKeyMap() {
Expand Down Expand Up @@ -145,9 +145,9 @@ public int size() {
}

/**
* Returns <tt>true</tt> if this map contains no key-value mappings.
* Returns true if this map contains no key-value mappings.
*
* @return <tt>true</tt> if this map contains no key-value mappings.
* @return true if this map contains no key-value mappings.
*/
@Override
public boolean isEmpty()
Expand All @@ -163,15 +163,15 @@ public boolean containsKey(Object key)

/**
* Returns the value to which the specified key is mapped in this identity
* hash map, or <tt>null</tt> if the map contains no mapping for this key.
* A return value of <tt>null</tt> does not <i>necessarily</i> indicate
* hash map, or null if the map contains no mapping for this key.
* A return value of null does not <i>necessarily</i> indicate
* that the map contains no mapping for the key; it is also possible that
* the map explicitly maps the key to <tt>null</tt>. The
* <tt>containsKey</tt> method may be used to distinguish these two cases.
* the map explicitly maps the key to null. The
* containsKey method may be used to distinguish these two cases.
*
* @param key the key whose associated value is to be returned.
* @return the value to which this map maps the specified key, or
* <tt>null</tt> if the map contains no mapping for this key.
* null if the map contains no mapping for this key.
* @see #put(int, Object)
*/
public VALUE get(int key) {
Expand All @@ -188,7 +188,7 @@ public VALUE get(int key) {
}

/**
* Returns <tt>true</tt> if this map contains a mapping for the
* Returns true if this map contains a mapping for the
* specified key.
*/
public boolean containsKey(int key)
Expand Down Expand Up @@ -225,10 +225,10 @@ IntEntry<VALUE> getEntry(int key) {
*
* @param key key with which the specified value is to be associated.
* @param value value to be associated with the specified key.
* @return previous value associated with specified key, or <tt>null</tt>
* if there was no mapping for key. A <tt>null</tt> return can
* @return previous value associated with specified key, or null
* if there was no mapping for key. A null return can
* also indicate that the IntKeyMap previously associated
* <tt>null</tt> with the specified key.
* null with the specified key.
*/
public VALUE put(int key, VALUE value) {
int hash = hash(key);
Expand Down Expand Up @@ -280,7 +280,7 @@ void putAllForCreate(IntKeyMap<VALUE> m) {
}

/**
* Rehashes the contents of this map into a new <tt>IntKeyMap</tt> instance
* Rehashes the contents of this map into a new IntKeyMap instance
* with a larger capacity. This method is called automatically when the
* number of keys in this map exceeds its capacity and load factor.
*
Expand Down Expand Up @@ -355,9 +355,9 @@ public void putAll(IntKeyMap<VALUE> t) {
* Removes the mapping for this key from this map if present.
*
* @param key key whose mapping is to be removed from the map.
* @return previous value associated with specified key, or <tt>null</tt>
* if there was no mapping for key. A <tt>null</tt> return can
* also indicate that the map previously associated <tt>null</tt>
* @return previous value associated with specified key, or null
* if there was no mapping for key. A null return can
* also indicate that the map previously associated null
* with the specified key.
*/
public VALUE remove(int key) {
Expand Down Expand Up @@ -438,11 +438,11 @@ public void clear() {
}

/**
* Returns <tt>true</tt> if this map maps one or more keys to the
* Returns true if this map maps one or more keys to the
* specified value.
*
* @param value value whose presence in this map is to be tested.
* @return <tt>true</tt> if this map maps one or more keys to the
* @return true if this map maps one or more keys to the
* specified value.
*/
@Override
Expand Down Expand Up @@ -687,10 +687,10 @@ Iterator<IntEntry<VALUE>> newEntryIterator()
* Returns a set view of the keys contained in this map. The set is
* backed by the map, so changes to the map are reflected in the set, and
* vice-versa. The set supports element removal, which removes the
* corresponding mapping from this map, via the <tt>Iterator.remove</tt>,
* <tt>Set.remove</tt>, <tt>removeAll</tt>, <tt>retainAll</tt>, and
* <tt>clear</tt> operations. It does not support the <tt>add</tt> or
* <tt>addAll</tt> operations.
* corresponding mapping from this map, via the Iterator.remove,
* Set.remove, removeAll, retainAll, and
* clear operations. It does not support the add or
* addAll operations.
*
* @return a set view of the keys contained in this map.
*/
Expand Down Expand Up @@ -736,9 +736,9 @@ public void clear() {
* collection is backed by the map, so changes to the map are reflected in
* the collection, and vice-versa. The collection supports element
* removal, which removes the corresponding mapping from this map, via the
* <tt>Iterator.remove</tt>, <tt>Collection.remove</tt>,
* <tt>removeAll</tt>, <tt>retainAll</tt>, and <tt>clear</tt> operations.
* It does not support the <tt>add</tt> or <tt>addAll</tt> operations.
* Iterator.remove, Collection.remove,
* removeAll, retainAll, and clear operations.
* It does not support the add or addAll operations.
*
* @return a collection view of the values contained in this map.
*/
Expand Down
Loading

0 comments on commit 13255a4

Please sign in to comment.