Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.
This repository was archived by the owner on May 18, 2019. It is now read-only.

Upload neo-devpack-java jar artifact to central maven repository #8

Description

@peterszatmary

Hello,

We need upload neo-devpack-java jar artifact to maven central repository. Tutorial page how to achieve it is here.

After that we can write smart contracts with just maven pom dependency and not add it manualy to classpath like we do right now. It is easier and standard way for Java developers.

Example of one smart contract pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.learning.neo</groupId>
    <artifactId>hello-world-smart-contract</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>My first smart contract</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <java.version>1.8</java.version>
        <maven.compiler.plugin.version>3.6.1</maven.compiler.plugin.version>
    </properties>

    <build>
        <sourceDirectory>src</sourceDirectory>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${maven.compiler.plugin.version}</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
        </plugins>
    </build>

  <dependencies>
        <dependency>
            <groupId>org.neo.smartcontract.framework</groupId>
            <artifactId>neo-devpack-java</artifactId>
            <version>2.3.0</version>
        </dependency>
    </dependencies>
</project>

I can do it if you agree with it. And after that i will start contribute examples to neo-project/examples-java project.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions